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

Update install

This commit is contained in:
Éric Gaspar 2023-06-14 12:45:43 +02:00
parent 99929978c7
commit 472bfd47ad

View file

@ -14,12 +14,9 @@ source /usr/share/yunohost/helpers
#=================================================
ynh_script_progression --message="Setting up source files..." --weight=5
# Download, check integrity, uncompress and patch the source from app.src
mkdir -p "$install_dir"
ynh_setup_source --dest_dir="$install_dir"
pushd $install_dir
install_statping
popd
chown -R $app:www-data "$install_dir"
#=================================================
# ADD A CONFIGURATION
@ -29,9 +26,8 @@ ynh_script_progression --message="Adding a configuration file..."
ynh_add_config --template="../conf/.env" --destination="$install_dir/.env"
ynh_add_config --template="../conf/services.yml" --destination="$install_dir/services.yml"
chmod 750 "$install_dir"
chmod -R o-rwx "$install_dir"
chown -R $app:www-data "$install_dir"
chmod 400 "$install_dir/.env"
chown $app:$app "$install_dir/.env"
#=================================================
# NGINX CONFIGURATION