1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/sogo_ynh.git synced 2024-09-03 20:26:07 +02:00
sogo_ynh/scripts/install

36 lines
1.1 KiB
Bash
Executable file

#!/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"