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:
parent
2c4c0b1248
commit
9b6f9b14bc
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue