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
|
@ -139,6 +139,11 @@ change_user_package
|
|||
shell_path=$(/usr/bin/chsh --list-shells | grep -w "$SHELL" |head -n1)
|
||||
/usr/bin/chsh -s "$shell_path" "$user" &>/dev/null
|
||||
|
||||
# Run template trigger
|
||||
if [ -x "$VESTA/data/packages/$package.sh" ]; then
|
||||
$VESTA/data/packages/$package.sh "$user" "$CONTACT" "$FNAME" "$LNAME"
|
||||
fi
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue