1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ombi_ynh.git synced 2024-09-03 19:55:54 +02:00
This commit is contained in:
Éric Gaspar 2024-07-26 21:51:09 +02:00
parent 10960ff134
commit 755b127ef0
2 changed files with 4 additions and 10 deletions

View file

@ -42,7 +42,7 @@ yunohost service add $app --description="Media request tool" --log="/var/log/$ap
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/database.json" --destination="$data_dir/database.json"
ynh_add_config --template="database.json" --destination="$data_dir/database.json"
chmod 650 "$data_dir/database.json"
chown $app:$app "$data_dir/database.json"

View file

@ -9,8 +9,6 @@
source _common.sh
source /usr/share/yunohost/helpers
upgrade_type=$(ynh_check_app_version_changed)
#=================================================
# STOP SYSTEMD SERVICE
#=================================================
@ -23,14 +21,10 @@ ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=1
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$install_dir"
fi
chown -R $app:www-data "$install_dir"