#!/bin/bash source _common.sh source /usr/share/yunohost/helpers if [[ $path != "/SOGo" ]]; then ynh_die "You can't install SOGo on other path than '/SOGo'" fi #================================================= # ADD A CONFIGURATION #================================================= ynh_script_progression "Configuring application..." mkdir -p "/etc/$app" ynh_config_add --template="sogo.conf" --destination="/etc/$app/sogo.conf" config_nginx ynh_config_add_logrotate "/var/log/$app/sogo.log" yunohost service add "sogo" --description="Groupware for E-Mail, Contacts and Calender" --log="/var/log/$app/$app.log" set_permissions #================================================= # START SYSTEMD SERVICE #================================================= ynh_script_progression "Starting $app's systemd service..." ynh_systemctl --service="$app" --action="restart" --log_path="systemd" #================================================= # END OF SCRIPT #================================================= ynh_script_progression "Installation of $app completed"