Skip to content

Commit

Permalink
Update linuxdeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
meefik committed Apr 17, 2014
1 parent d0abcb1 commit 7253bbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assets/home/bin/linuxdeploy
Original file line number Diff line number Diff line change
Expand Up @@ -1233,8 +1233,8 @@ install_system()
rm -rf $MNT_TARGET/tmp/*

# for run su command as root without password
if [ -z "`grep -e '^auth[[:space:]]\+sufficient[[:space:]]\+pam_wheel.so trust use_uid$' $MNT_TARGET/etc/pam.d/su`" ]; then
sed -i 's/^\(auth[[:space:]]\+include[[:space:]]\+system-auth\)$/auth\t\tsufficient\tpam_wheel.so trust use_uid\n\1/g' $MNT_TARGET/etc/pam.d/su
if [ -z "`grep -e '^auth[[:space:]]\+sufficient[[:space:]]\+pam_wheel.so trust use_uid$' $MNT_TARGET/etc/pam.d/su-l`" ]; then
sed -i 's/^\(auth[[:space:]]\+include[[:space:]]\+system-auth\)$/auth\t\tsufficient\tpam_wheel.so trust use_uid\n\1/g' $MNT_TARGET/etc/pam.d/su-l
fi

#msg "Installing base packages: "
Expand Down Expand Up @@ -1305,8 +1305,8 @@ install_system()
rm -rf $MNT_TARGET/tmp/*

# for run su command as root without password
if [ -z "`grep -e '^auth[[:space:]]\+sufficient[[:space:]]\+pam_wheel.so trust use_uid$' $MNT_TARGET/etc/pam.d/su`" ]; then
sed -i 's/^\(auth[[:space:]]\+include[[:space:]]\+common-auth\)$/auth\t\tsufficient\tpam_wheel.so trust use_uid\n\1/g' $MNT_TARGET/etc/pam.d/su
if [ -z "`grep -e '^auth[[:space:]]\+sufficient[[:space:]]\+pam_wheel.so trust use_uid$' $MNT_TARGET/etc/pam.d/su-l`" ]; then
sed -i 's/^\(auth[[:space:]]\+include[[:space:]]\+common-auth\)$/auth\t\tsufficient\tpam_wheel.so trust use_uid\n\1/g' $MNT_TARGET/etc/pam.d/su-l
fi
;;
gentoo)
Expand Down

0 comments on commit 7253bbf

Please sign in to comment.