use sudo_cmd as needed

This commit is contained in:
AJ ONeal 2017-11-07 16:20:55 -07:00
parent 1dcb8d04a5
commit f2ad6f127c
1 changed files with 2 additions and 2 deletions

View File

@ -159,8 +159,8 @@ $sudo_cmd chown -R $my_user:$my_group $my_tmp
$sudo_cmd chown root:root $my_tmp/*
$sudo_cmd chown root:root $my_tmp
$sudo_cmd chmod 0755 $my_tmp
rsync -a --ignore-existing $my_tmp/ $my_root/
rsync -a --ignore-existing $my_app_dist/etc/$my_app_name/$my_app_name.yml $my_root/etc/$my_app_name/$my_app_name.yml
$sudo_cmd rsync -a --ignore-existing $my_tmp/ $my_root/
$sudo_cmd rsync -a --ignore-existing $my_app_dist/etc/$my_app_name/$my_app_name.yml $my_root/etc/$my_app_name/$my_app_name.yml
source ./installer/install-system-service.sh
# Change to admin perms