Rearranged order of entries in temporary root crontab
This commit is contained in:
@@ -233,11 +233,11 @@ EOF
|
||||
|
||||
if [[ "${ID}" == 'fedora' ]]; then
|
||||
printf \
|
||||
"@reboot\t/usr/bin/home-fix.sh\n@reboot\tsudo -u ${USERNAME} '${BASEDIR}/finalize.sh'\n" | \
|
||||
"@reboot\tsudo -u ${USERNAME} '${BASEDIR}/finalize.sh'\n@reboot\t/usr/bin/home-fix.sh\n" | \
|
||||
tee /var/spool/cron/root &> /dev/null
|
||||
elif [[ "${ID}" == 'debian' ]]; then
|
||||
printf \
|
||||
"@reboot\t/usr/bin/home-fix.sh\n@reboot\tsudo -u ${USERNAME} '${BASEDIR}/finalize.sh'\n" | \
|
||||
"@reboot\tsudo -u ${USERNAME} '${BASEDIR}/finalize.sh'\n@reboot\t/usr/bin/home-fix.sh\n" | \
|
||||
tee /var/spool/cron/crontabs/root &> /dev/null
|
||||
|
||||
chown \
|
||||
|
Reference in New Issue
Block a user