mirror of
https://framagit.org/YunoHost-Apps/gitea_ynh.git
synced 2024-12-22 09:35:06 +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
|
||||
|
||||
if [[ $migration_process -eq 1 ]]; then
|
||||
|
||||
# Reload variables
|
||||
dbname=$app
|
||||
dbuser=$app
|
||||
@ -67,6 +66,16 @@ if [[ $migration_process -eq 1 ]]; then
|
||||
ynh_replace_string "__APP__" "$app" ../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"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user