mirror of
https://github.com/YunoHost-Apps/mautrix_signal_ynh.git
synced 2024-09-03 19:46:07 +02:00
add: python-->go migration, remove signald stuff
This commit is contained in:
parent
8b73f168b3
commit
193fb3a579
2 changed files with 12 additions and 3 deletions
|
@ -4,6 +4,10 @@
|
|||
# COMMON VARIABLES
|
||||
#=================================================
|
||||
|
||||
signald_data="/var/lib/signald"
|
||||
signald_exe="/usr/bin/signald"
|
||||
signald_user="signald"
|
||||
|
||||
enable_relaybot=true
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -46,13 +46,18 @@ ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
|
|||
# were written in Python. Also signald data is not needed anymore.
|
||||
|
||||
# Remove rustup
|
||||
export PATH="$PATH:$install_dir/.cargo/bin:$install_dir/.local/bin:/usr/local/sbin"
|
||||
|
||||
# Remove signald and its repository
|
||||
if [ -e "$install_dir/.rustup" ]; then
|
||||
ynh_exec_as "$app" env "PATH=$PATH" rustup self uninstall
|
||||
fi
|
||||
# Remove signald executable
|
||||
ynh_secure_remove --file="$signald_exe"
|
||||
|
||||
# Remove signald data
|
||||
|
||||
ynh_secure_remove --file="$signald_data"
|
||||
# Remove signald system user
|
||||
|
||||
ynh_system_user_delete --username=$signald_user
|
||||
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Reference in a new issue