1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/readeck_ynh.git synced 2024-09-03 20:16:18 +02:00

Merge pull request #1 from YunoHost-Apps/testing

testing
This commit is contained in:
eric_G 2024-02-10 11:16:27 +01:00 committed by GitHub
commit d353480b5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 12 additions and 14 deletions

View file

@ -1,7 +1,7 @@
[main]
log_level = "info"
secret_key = "__KEY__"
data_directory = "data"
data_directory = "__DATA_DIR__"
[server]
host = "127.0.0.1"

View file

@ -7,7 +7,7 @@ Type=simple
User=__APP__
Group=__APP__
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
RestartSec=5

View file

@ -46,7 +46,7 @@ ram.runtime = "50M"
amd64.url = "https://codeberg.org/readeck/readeck/releases/download/0.12.0/readeck-0.12.0-linux-amd64"
amd64.sha256 = "c2387688f4603a65e77f20042afd76191551ff2d6abe56117a82fb759837fa67"
arm64.url = "https://codeberg.org/readeck/readeck/releases/download/0.12.0/readeck-0.12.0-linux-arm64"
arm.sha256 = "1ee30dc8ab6478d4ba1c1f179d4381cdac4e7e7dc2f7071f945374823fdab72e"
arm64.sha256 = "1ee30dc8ab6478d4ba1c1f179d4381cdac4e7e7dc2f7071f945374823fdab72e"
armhf.url = "https://codeberg.org/readeck/readeck/releases/download/0.12.0/readeck-0.12.0-linux-arm-6"
armhf.sha256 = "62b33fbe63726ac59d4242ec8b6bb31641d09246274e83a5d3989be57d46c478"
rename = "readeck"

View file

@ -6,7 +6,6 @@
# 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 /usr/share/yunohost/helpers

View file

@ -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
# this will most likely adjust NGINX config correctly
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_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"
chown "$app:$app" "$install_dir/config.toml"
chmod 600 "$data_dir/config.toml"
chown "$app:$app" "$data_dir/config.toml"
#=================================================
# GENERIC FINALISATION

View file

@ -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_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"
chown "$app:$app" "$install_dir/config.toml"
chmod 600 "$data_dir/config.toml"
chown "$app:$app" "$data_dir/config.toml"
#=================================================
# GENERIC FINALIZATION

View file

@ -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_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"
chown "$app:$app" "$data_dir/config.toml"
#chmod 600 "$data_dir_dir/config.toml"
#chown "$app:$app" "$data_dir_dir/config.toml"
#=================================================
# START SYSTEMD SERVICE