mirror of
https://github.com/YunoHost-Apps/readeck_ynh.git
synced 2024-09-03 20:16:18 +02:00
fix
This commit is contained in:
parent
51482caf36
commit
96528c1acb
6 changed files with 11 additions and 13 deletions
|
@ -1,7 +1,7 @@
|
||||||
[main]
|
[main]
|
||||||
log_level = "info"
|
log_level = "info"
|
||||||
secret_key = "__KEY__"
|
secret_key = "__KEY__"
|
||||||
data_directory = "data"
|
data_directory = "__DATA_DIR__"
|
||||||
|
|
||||||
[server]
|
[server]
|
||||||
host = "127.0.0.1"
|
host = "127.0.0.1"
|
||||||
|
|
|
@ -7,7 +7,7 @@ Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__INSTALL_DIR__/
|
WorkingDirectory=__INSTALL_DIR__/
|
||||||
ExecStart=__INSTALL_DIR__/readeck serve -config __INSTALL_DIR__/config.toml
|
ExecStart=__INSTALL_DIR__/readeck serve -config __DATA_DIR__/config.toml
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
# IMPORT GENERIC HELPERS
|
# IMPORT GENERIC HELPERS
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Keep this path for calling _common.sh inside the execution's context of backup and restore scripts
|
|
||||||
source ../settings/scripts/_common.sh
|
source ../settings/scripts/_common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,6 @@ ynh_systemd_action --service_name="$app" --action="stop" --log_path="systemd"
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1
|
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1
|
||||||
|
|
||||||
# this will most likely adjust NGINX config correctly
|
|
||||||
ynh_change_url_nginx_config
|
ynh_change_url_nginx_config
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -31,10 +30,10 @@ ynh_change_url_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="config.toml" --destination="$install_dir/config.toml"
|
ynh_add_config --template="config.toml" --destination="$data_dir_dir/config.toml"
|
||||||
|
|
||||||
chmod 600 "$install_dir/config.toml"
|
chmod 600 "$data_dir_dir/config.toml"
|
||||||
chown "$app:$app" "$install_dir/config.toml"
|
chown "$app:$app" "$data_dir_dir/config.toml"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALISATION
|
# GENERIC FINALISATION
|
||||||
|
|
|
@ -46,10 +46,10 @@ yunohost service add "$app" --description="Bookmark manager and a read later too
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="config.toml" --destination="$install_dir/config.toml"
|
ynh_add_config --template="config.toml" --destination="$data_dir/config.toml"
|
||||||
|
|
||||||
chmod 600 "$install_dir/config.toml"
|
chmod 600 "$data_dir/config.toml"
|
||||||
chown "$app:$app" "$install_dir/config.toml"
|
chown "$app:$app" "$data_dir/config.toml"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# GENERIC FINALIZATION
|
# GENERIC FINALIZATION
|
||||||
|
|
|
@ -47,10 +47,10 @@ yunohost service add "$app" --description="Bookmark manager and a read later too
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
ynh_script_progression --message="Updating a configuration file..." --weight=1
|
||||||
|
|
||||||
ynh_add_config --template="config.toml" --destination="$data_dir/config.toml"
|
#ynh_add_config --template="config.toml" --destination="$data_dir_dir/config.toml"
|
||||||
|
|
||||||
chmod 400 "$data_dir/config.toml"
|
#chmod 600 "$data_dir_dir/config.toml"
|
||||||
chown "$app:$app" "$data_dir/config.toml"
|
#chown "$app:$app" "$data_dir_dir/config.toml"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# START SYSTEMD SERVICE
|
# START SYSTEMD SERVICE
|
||||||
|
|
Loading…
Add table
Reference in a new issue