Skip to content

Commit

Permalink
Update yc-image-cleanup.sh
Browse files Browse the repository at this point in the history
Alt ws uses tcb auth, fix check script
  • Loading branch information
mrdracon authored Jul 18, 2023
1 parent 203d4f5 commit a769f41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion products-prepare/linux/yc-image-cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ function getNonLockedUsers {
USERPW=$(cat "$PASSWD_FILE" | grep -v -e "^#" | getRowByColumnValue "$SYSDB_DELIMITER" 1 "$USER" | awk -F "$SYSDB_DELIMITER" '{print($2)}')
if [ "$USERPW" == "" ]; then
OS_TYPE=$(getOS)
if [ "$OS_TYPE" == "ALT Server" ] || [ "$OS_TYPE" == "ALT SPServer" ]; then
if [ "$OS_TYPE" == "ALT Server" ] || [ "$OS_TYPE" == "ALT SPServer" ] || [ "$OS_TYPE" == "ALT Workstation" ]; then
USERPW=$(cat /etc/tcb/"$USER"/shadow | getRowByColumnValue "$SYSDB_DELIMITER" 1 "$USER" | awk -F "$SYSDB_DELIMITER" '{print($2)}')
fi
fi
Expand Down

0 comments on commit a769f41

Please sign in to comment.