mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-11-22 19:11:35 +01:00
Fix hook
This commit is contained in:
parent
f1da593278
commit
84725a3bc0
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user