1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kavita_ynh.git synced 2024-09-03 19:26:30 +02:00

0.7.2~ynh1

This commit is contained in:
skyuk3000 2023-05-23 13:42:34 +01:00 committed by GitHub
parent a75153d69b
commit 4b32b5ac04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ source /usr/share/yunohost/helpers
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" --source_id=$YNH_ARCH
ynh_setup_source --dest_dir="$install_dir" #--source_id=$YNH_ARCH
chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir"
@ -35,6 +35,17 @@ ynh_add_systemd_config
yunohost service add $app --description="Cross platform reading server" --log="/var/log/$app/$app.log"
#=================================================
# MODIFY A CONFIG FILE
#=================================================
ynh_script_progression --message="Modifying a config file..." --weight=1
url_path=${path#/}
ynh_add_config --template="../conf/appsettings.json.example" --destination="$install_dir/config/appsettings.json"
chmod 600 "$install_dir/config/appsettings.json"
chown $app:$app "$install_dir/config/appsettings.json"
#=================================================
# START SYSTEMD SERVICE
#=================================================