mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 13:24:24 -07:00
package trigger support
This commit is contained in:
parent
635522778f
commit
c4101dcf42
3 changed files with 15 additions and 0 deletions
|
@ -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" \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue