1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/element_ynh.git synced 2024-09-03 18:36:08 +02:00
This commit is contained in:
Éric Gaspar 2023-03-17 08:41:00 +01:00
parent 68c6b91e8e
commit 9b2b670840
2 changed files with 5 additions and 6 deletions

View file

@ -24,8 +24,6 @@ ynh_script_progression --message="Setting up source files..." --weight=4
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
# SYSTEM CONFIGURATION
#=================================================
@ -41,8 +39,8 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/config.json" --destination="$install_dir/config.json"
chmod 400 "$install_dir/config.json"
chown $app:$app "$install_dir/config.json"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
# END OF SCRIPT

View file

@ -43,6 +43,7 @@ then
ynh_setup_source --dest_dir="$install_dir" --keep="config.json"
fi
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
#=================================================
@ -52,8 +53,8 @@ chown -R $app:www-data "$install_dir"
#ynh_add_config --template="../conf/config.json" --destination="$install_dir/config.json"
#chmod 400 "$install_dir/config.json"
#chown $app:$app "$install_dir/config.json"
#chmod -R o-rwx "$install_dir"
#chown -R $app:www-data "$install_dir"
#=================================================
# REAPPLY SYSTEM CONFIGURATIONS