fix for new installs

This commit is contained in:
Serghey Rodin 2016-11-22 21:37:50 +02:00
commit 6d17a5b610

View file

@ -1,5 +1,10 @@
#!/bin/bash #!/bin/bash
# Run triggers only on updates
if [ ! -e "/usr/local/vesta/data/users/admin" ]; then
exit
fi
# Run SUDO trigger # Run SUDO trigger
if [ -x "/usr/local/vesta/upd/add_sudo.sh" ]; then if [ -x "/usr/local/vesta/upd/add_sudo.sh" ]; then
/usr/local/vesta/upd/add_sudo.sh /usr/local/vesta/upd/add_sudo.sh