mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-27 05:21:37 +01:00
33 lines
796 B
Bash
33 lines
796 B
Bash
#!/bin/bash
|
|
|
|
# Ending the migration process from Gogs to Gitea
|
|
|
|
set -u
|
|
|
|
#=================================================
|
|
# IMPORT GENERIC HELPERS
|
|
#=================================================
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
#=================================================
|
|
# SET VARIABLES
|
|
#=================================================
|
|
|
|
old_app="__OLD_APP__"
|
|
new_app="__NEW_APP__"
|
|
script_name="$0"
|
|
|
|
#=================================================
|
|
# DELETE OLD APP'S SETTINGS
|
|
#=================================================
|
|
|
|
ynh_secure_remove --file="/etc/yunohost/apps/$old_app"
|
|
yunohost app ssowatconf
|
|
|
|
#=================================================
|
|
# DELETE THIS SCRIPT
|
|
#=================================================
|
|
|
|
echo "rm $script_name" | at now + 1 minutes
|