1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/webtrees_ynh.git synced 2024-09-03 18:26:37 +02:00

sudo is not necessary, script run as root

This commit is contained in:
antoine 2019-12-07 18:38:47 +01:00
parent 2c4c0b1248
commit 9b6f9b14bc

View file

@ -72,16 +72,16 @@ ynh_abort_if_errors
ynh_print_info "Upgrading source files..."
# Move old app dir
sudo mv ${final_path} ${final_path}.old
mv ${final_path} ${final_path}.old
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source "$final_path"
# restore data
sudo cp -a ${final_path}.old/data ${final_path}
cp -a ${final_path}.old/data ${final_path}
# delete temp directory
sudo rm -Rf ${final_path}.old
rm -Rf ${final_path}.old
#=================================================
# NGINX CONFIGURATION
@ -133,7 +133,7 @@ ynh_store_file_checksum "$final_path/data/config.ini.php"
# Set permissions on app files
chown -R $app: $final_path
sudo chmod -R 700 $final_path/data
chmod -R 700 $final_path/data
#=================================================
# SETUP SSOWAT