23 lines
603 B
Bash
23 lines
603 B
Bash
#!/bin/bash
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
#=================================================
|
|
# DOWNLOAD, CHECK AND UNPACK SOURCE
|
|
#=================================================
|
|
ynh_script_progression --message="Setting up source files…" --weight=2
|
|
|
|
ynh_setup_source --dest_dir="$install_dir"
|
|
|
|
chown -R $app:www-data "$install_dir"
|
|
chmod -R o-rwx "$install_dir"
|
|
|
|
|
|
#=================================================
|
|
# WEBSERVER CONFIGURATION
|
|
#=================================================
|
|
ynh_script_progression --message="Adding nginx configuration …" --weight=1
|
|
|
|
ynh_add_nginx_config
|
|
|