From 5c96894a500299b52fbf8c76cfee148f260ef49d Mon Sep 17 00:00:00 2001 From: yalh76 Date: Mon, 5 Sep 2022 00:44:56 +0200 Subject: [PATCH] cleanup --- scripts/_common.sh | 6 +----- scripts/install | 2 +- scripts/remove | 2 +- scripts/restore | 2 +- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index b250a30..9f14ec1 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -4,7 +4,7 @@ # COMMON VARIABLES #================================================= -# dependencies used by the app +# dependencies used by the app (must be on a single line) # HACK zlib1g-dev libjpeg-dev (libwebp-dev and libolm-dev optional but necessary for stickers/e2be) are necessary to compile / install pillow pkg_dependencies="postgresql python3 zlib1g-dev libjpeg-dev libwebp-dev python3-venv libpq-dev libffi-dev libolm-dev" @@ -12,10 +12,6 @@ pkg_dependencies="postgresql python3 zlib1g-dev libjpeg-dev libwebp-dev python3- # PERSONAL HELPERS #================================================= -write_bridge_config () { - -} - #================================================= # EXPERIMENTAL HELPERS #================================================= diff --git a/scripts/install b/scripts/install index 75a9088..8d2c592 100755 --- a/scripts/install +++ b/scripts/install @@ -34,7 +34,7 @@ bottoken=$YNH_APP_ARG_BOTTOKEN app=$YNH_APP_INSTANCE_NAME -# TODO check (in manifest?) if the selected synapse instance is not already connected to a mautrix_bridge bridge +# ToDo check (in manifest?) if the selected synapse instance is not already connected to a mautrix_bridge bridge if [ $synapsenumber -eq "1" ] then synapse_instance="synapse" diff --git a/scripts/remove b/scripts/remove index 4b6171a..46c07cc 100755 --- a/scripts/remove +++ b/scripts/remove @@ -82,7 +82,7 @@ ynh_remove_app_dependencies #================================================= # REMOVE VARIOUS FILES #================================================= -ynh_script_progression --message="Removing synapse app service..." --weight=6 +ynh_script_progression --message="Removing various files..." --weight=6 # Remove a directory securely ynh_secure_remove --file="$synapse_registration_path/$app.yaml" diff --git a/scripts/restore b/scripts/restore index 1b90fcb..9ae9496 100755 --- a/scripts/restore +++ b/scripts/restore @@ -119,7 +119,7 @@ ynh_restore_file --origin_path="/etc/logrotate.d/$app" #================================================= ynh_script_progression --message="Integrating service in YunoHost..." --weight=1 -yunohost service add $app --description "$app daemon for bridging Telegram and Matrix messages" --log /var/log/$app/$app.log +yunohost service add $app --description="$app daemon for bridging Telegram and Matrix messages" --log="/var/log/$app/$app.log" #================================================= # START SYSTEMD SERVICE