mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
commit
b78e502280
2 changed files with 8 additions and 20 deletions
|
@ -77,10 +77,6 @@ sudo gitlab-ctl reconfigure
|
|||
nginx_conf=../conf/nginx.conf
|
||||
sed -i "s@YNH_WWW_PATH@$path_url@g" $nginx_conf
|
||||
sed -i "s@PORT@$portNginx@g" $nginx_conf
|
||||
# sed -i "s@YNH_WWW_ALIAS@$src_path/@g" $nginx_conf
|
||||
# If a dedicated php-fpm process is used:
|
||||
# Don't forget to modify ../conf/nginx.conf accordingly or your app will not work!
|
||||
# sed -i "s@YNH_WWW_APP@$app@g" $nginx_conf
|
||||
sudo cp $nginx_conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
|
||||
|
||||
|
|
|
@ -10,26 +10,18 @@ source /usr/share/yunohost/helpers
|
|||
# Retrieve app settings
|
||||
domain=$(ynh_app_setting_get "$app" domain)
|
||||
|
||||
# Remove sources
|
||||
sudo rm -rf /var/www/$app
|
||||
sudo apt-get remove gitlab-ce
|
||||
|
||||
sudo rm -rf /opt/gitlab
|
||||
sudo rm -rf /etc/gitlab
|
||||
sudo rm -rf /var/opt/gitlab
|
||||
|
||||
# Remove apt sources-list
|
||||
sudo rm -f /etc/apt/sources.list.d/gitlab-ce.list
|
||||
|
||||
# Remove nginx configuration file
|
||||
sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
|
||||
### PHP (remove if not used) ###
|
||||
# If a dedicated php-fpm process is used:
|
||||
# sudo rm -f /etc/php5/fpm/pool.d/$app.conf
|
||||
# sudo service php5-fpm reload
|
||||
### PHP end ###
|
||||
|
||||
### MySQL (remove if not used) ###
|
||||
# If a MySQL database is used:
|
||||
# # Drop MySQL database and user
|
||||
# dbname=$app
|
||||
# dbuser=$app
|
||||
# ynh_mysql_drop_db "$dbname" || true
|
||||
# ynh_mysql_drop_user "$dbuser" || true
|
||||
### MySQL end ###
|
||||
|
||||
# Reload nginx service
|
||||
sudo service nginx reload
|
||||
|
|
Loading…
Reference in a new issue