Skip to content

Commit

Permalink
run all postinstall scripts after all packages installed
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianInglis committed Oct 27, 2016
1 parent 97da860 commit bdd7ea8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions apt-cyg
Original file line number Diff line number Diff line change
Expand Up @@ -496,19 +496,20 @@ function apt-install {
echo some required packages did not install, continuing
fi

# run all postinstall scripts
echo Package $pkg installed

done

[ -v noscripts ] && continue
# run all postinstall scripts after all packages installed
if [ ! -v noscripts ]; then
find /etc/postinstall -name '*.*sh' | while read script # allow dash scripts
do
echo Running $script
$script
# don't rename permanent first and last to run postinstall scripts
[[ $script != /etc/postinstall/[0z]p_*.*sh ]] && mv $script $script.done
done
echo Package $pkg installed

done
fi
}

function apt-remove {
Expand Down

0 comments on commit bdd7ea8

Please sign in to comment.