mirror of
https://github.com/YunoHost-Apps/mautrix_telegram_ynh.git
synced 2024-09-03 19:45:55 +02:00
try to make CI work
This commit is contained in:
parent
a73489c8de
commit
0a3dbd1498
5 changed files with 12 additions and 12 deletions
|
@ -1,14 +1,16 @@
|
|||
;; Default test serie
|
||||
; pre-install
|
||||
sudo yunohost tools update
|
||||
sudo yunohost app list | grep synapse || sudo yunohost app install https://github.com/YunoHost-Apps/synapse_ynh/ -a "domain=$domain&server_name=$server_name&is_public=$is_public&jitsi_server=$jitsi_server" --force
|
||||
; Manifest
|
||||
port="8449"
|
||||
port="29317"
|
||||
synapsenumber="1"
|
||||
botname="telegrambot"
|
||||
encryption=false
|
||||
botadmin="@johndoe:synapsedomain.tld"
|
||||
botusers="@johndoe:synapsedomain.tld"
|
||||
apiid="1234567"
|
||||
# this is a random hash so this will not work
|
||||
apihash="tjyd5yge35lbodk1xwzw2jstp90k55qz"
|
||||
apihash="tjyd5yge35lbodl1jwzw2jstp90k55qz"
|
||||
bottoken="disabled"
|
||||
; Checks
|
||||
pkg_linter=1
|
||||
|
@ -25,7 +27,5 @@
|
|||
port_already_use=1
|
||||
change_url=0
|
||||
;;; Upgrade options
|
||||
# ; commit=636be2f9f900e578d9aa26ee887dcec2ef8d4e71
|
||||
# name=0.1.6
|
||||
# ; commit=a95215f2ea5d1f34b1c804f776e78c4785477023
|
||||
# name=0.1.7
|
||||
# ; commit=e579544bf977e2b6b4221ecfaf1b1a5c6069560e
|
||||
# name=0.10.1~ynh3
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"en": "Telegram puppeting bridge for Matrix/Synapse",
|
||||
"fr": "Passerelle Telegram pour Matrix/Synapse"
|
||||
},
|
||||
"version": "0.10.1~ynh2",
|
||||
"version": "0.10.1~ynh3",
|
||||
"url": "https://github.com/mautrix/telegram",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"maintainer": {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
# dependencies used by the app
|
||||
# HACK zlib1g-dev libjpeg-dev (libwebp-dev optional but necessary for stickers) are necessary to compile / install pillow
|
||||
pkg_dependencies="postgresql python3 zlib1g-dev libjpeg-dev libwebp-dev"
|
||||
pkg_dependencies="postgresql python3 zlib1g-dev libjpeg-dev libwebp-dev python3-venv libpq-dev"
|
||||
|
||||
#=================================================
|
||||
# PERSONAL HELPERS
|
||||
|
|
|
@ -199,9 +199,9 @@ ynh_replace_string --match_string="script_location = alembic" \
|
|||
--target_file="$final_path/alembic.ini"
|
||||
$final_path/bin/alembic -c "$final_path/alembic.ini" -x config="$mautrix_config_path" upgrade head
|
||||
|
||||
# Handled by synapse: synapse_ynh adds all registration files added in $app_service_registration_path to the app_service_config_files list
|
||||
/opt/yunohost/matrix-$synapse_instance/update_synapse_for_appservice.sh \
|
||||
|| ynh_die "Synapse can't restart with the appservice configuration"
|
||||
# Handled by synapse: synapse_ynh adds all registration files added in $app_service_registration_path to the app_service_config_files list
|
||||
|
||||
#=================================================
|
||||
# STORE THE CONFIG FILE CHECKSUM
|
||||
|
@ -237,7 +237,7 @@ ynh_script_progression --message="Configuring log rotation..." --weight=3
|
|||
|
||||
# Use logrotate to manage application logfile(s)
|
||||
# TODO maybe --specific-user??
|
||||
ynh_use_logrotate --logfile "/var/log/$app/$app.log" --specific-user $mautrix_bridge_user
|
||||
ynh_use_logrotate --logfile "/var/log/$app/$app.log" --specific_user $mautrix_bridge_user
|
||||
chown $mautrix_bridge_user:root -R /var/log/$app
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -107,7 +107,7 @@ systemctl enable $app.service --quiet
|
|||
#=================================================
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue