This commit is contained in:
Josué Tille 2019-03-02 00:16:46 +01:00
parent f1da593278
commit 84725a3bc0
No known key found for this signature in database
GPG Key ID: D5E068C6DFA8681D

View File

@ -43,7 +43,6 @@ systemctl stop "$app".service
ynh_handle_app_migration gogs gogs_migrations ynh_handle_app_migration gogs gogs_migrations
if [[ $migration_process -eq 1 ]]; then if [[ $migration_process -eq 1 ]]; then
# Reload variables # Reload variables
dbname=$app dbname=$app
dbuser=$app dbuser=$app
@ -67,6 +66,16 @@ if [[ $migration_process -eq 1 ]]; then
ynh_replace_string "__APP__" "$app" ../conf/login_source.sql ynh_replace_string "__APP__" "$app" ../conf/login_source.sql
ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ../conf/login_source.sql ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ../conf/login_source.sql
# Fix hooks
if [[ -e $REPO_PATH ]];then
ls $REPO_PATH/*/*.git/hooks/pre-receive | while read p; do
ynh_secure_remove $p
done
ls $REPO_PATH/*/*.git/hooks/post-receive | while read p; do
ynh_secure_remove $p
done
fi
upstream_version="0.0.1" upstream_version="0.0.1"
fi fi