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:
parent
a75153d69b
commit
4b32b5ac04
1 changed files with 12 additions and 1 deletions
|
@ -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
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue