package trigger support

This commit is contained in:
Serghey Rodin 2013-07-12 10:37:54 +03:00
commit c4101dcf42
3 changed files with 15 additions and 0 deletions

View file

@ -14,6 +14,11 @@ rebuild_user_conf() {
touch $USER_DATA/stats.log
chmod 660 $USER_DATA/stats.log
# Run template trigger
if [ -x "$VESTA/data/packages/$PACKAGE.sh" ]; then
$VESTA/data/packages/$package.sh "$user" "$CONTACT" "$FNAME" "$LNAME"
fi
# Rebuild user
shell=$(chsh --list-shells | grep -w "$SHELL" | head -n1)
/usr/sbin/adduser "$user" -s "$shell" -c "$CONTACT" \