mirror of
https://github.com/YunoHost-Apps/droppy_ynh.git
synced 2024-09-03 18:26:27 +02:00
Fix
This commit is contained in:
parent
ddb3ee52f3
commit
e9ca4dee3c
3 changed files with 12 additions and 12 deletions
|
@ -84,10 +84,6 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir=$final_path
|
ynh_setup_source --dest_dir=$final_path
|
||||||
|
|
||||||
chmod 755 "$final_path"
|
|
||||||
chmod -R o-rwx "$final_path"
|
|
||||||
chown -R $app:www-data "$final_path"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -147,6 +143,10 @@ ynh_add_config --template="../conf/config.json.example" --destination="$final_pa
|
||||||
chmod 600 "$final_path/config/config.json"
|
chmod 600 "$final_path/config/config.json"
|
||||||
chown $app:$app "$final_path/config/config.json"
|
chown $app:$app "$final_path/config/config.json"
|
||||||
|
|
||||||
|
chmod 755 "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app: "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -62,10 +62,6 @@ ynh_script_progression --message="Restoring $app main directory..." --weight=20
|
||||||
|
|
||||||
ynh_restore_file --origin_path="$final_path"
|
ynh_restore_file --origin_path="$final_path"
|
||||||
|
|
||||||
chmod 755 "$final_path"
|
|
||||||
chmod -R o-rwx "$final_path"
|
|
||||||
chown -R $app:www-data "$final_path"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SPECIFIC RESTORATION
|
# SPECIFIC RESTORATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -97,6 +93,10 @@ chmod 750 "$data_path"
|
||||||
chmod -R o-rwx "$data_path"
|
chmod -R o-rwx "$data_path"
|
||||||
chown -R $app:www-data "$data_path"
|
chown -R $app:www-data "$data_path"
|
||||||
|
|
||||||
|
chmod 755 "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app: "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# RESTORE THE LOGROTATE CONFIGURATION
|
# RESTORE THE LOGROTATE CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -85,10 +85,6 @@ then
|
||||||
ynh_setup_source --dest_dir=$final_path
|
ynh_setup_source --dest_dir=$final_path
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod 755 "$final_path"
|
|
||||||
chmod -R o-rwx "$final_path"
|
|
||||||
chown -R $app:www-data "$final_path"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# NGINX CONFIGURATION
|
# NGINX CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -131,6 +127,10 @@ ynh_add_config --template="../conf/config.json.example" --destination="$final_pa
|
||||||
chmod 600 "$final_path/config/config.json"
|
chmod 600 "$final_path/config/config.json"
|
||||||
chown $app:$app "$final_path/config/config.json"
|
chown $app:$app "$final_path/config/config.json"
|
||||||
|
|
||||||
|
chmod 755 "$final_path"
|
||||||
|
chmod -R o-rwx "$final_path"
|
||||||
|
chown -R $app: "$final_path"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SETUP SYSTEMD
|
# SETUP SYSTEMD
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue