#!/bin/bash # Source YunoHost helpers source /usr/share/yunohost/helpers # Exit if an error occurs during the execution of the script ynh_abort_if_errors # Load common variables and helpers source ./_common.sh # See comments in install script app=$YNH_APP_INSTANCE_NAME # Retrieve app settings domain=$(ynh_app_setting_get "$app" domain) path_url=$(ynh_app_setting_get "$app" path_url) admin=$(ynh_app_setting_get "$app" admin) is_public=$(ynh_app_setting_get "$app" is_public) port=$(ynh_app_setting_get "$app" web_port) portUnicorn=$(ynh_app_setting_get "$app" unicorn_port) # Modify Nginx configuration file and copy it to Nginx conf directory config_nginx create_dir # Configure gitlab with gitlab.rb file config_gitlab # Add dependencies ynh_install_app_dependencies openssh-server # Update to the last version update_src_version # Update Gitlab setup_source $architecture # If app is public, add url to SSOWat conf as skipped_uris if [[ $is_public -eq 1 ]]; then # See install script ynh_app_setting_set "$app" unprotected_uris "/" fi # Reload nginx service sudo service nginx reload