Skip to content

Commit

Permalink
bug fix, run system scripts before user
Browse files Browse the repository at this point in the history
  • Loading branch information
adregner committed Dec 7, 2011
1 parent 05f7fdc commit 3dc40fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init.sh
Expand Up @@ -68,7 +68,7 @@ function run_setup() {
script="$basedir/setup.$1.d/$script"
if [[ -x "$script" ]]; then
if [[ "$1" == "user" ]]; then
sudo -u HOME=$home $username $myenv $script
sudo -u $username HOME=$home $myenv $script
elif [[ "$1" == "system" ]]; then
$script
fi
Expand All @@ -77,8 +77,8 @@ function run_setup() {
}

# ...run them
run_setup user
run_setup system
run_setup user

# automatic updates (every 4 hours)
echo "0 */4 * * * root $basedir/update.sh" #> /etc/cron.d/adrtools

0 comments on commit 3dc40fe

Please sign in to comment.