1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/grocy_ynh.git synced 2024-09-03 19:25:54 +02:00

Cleaning up

This commit is contained in:
ericgaspar 2021-05-26 23:24:42 +02:00
parent b0aed70573
commit f1ebbd00ba
No known key found for this signature in database
GPG key ID: 574F281483054D44
4 changed files with 0 additions and 46 deletions

View file

@ -7,8 +7,6 @@ location / {
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
more_set_headers "X-Content-Type-Options: nosniff";
index index.php;

View file

@ -94,17 +94,6 @@ ynh_add_config --template="../conf/config-dist.php" --destination="$final_path/d
chmod 400 "$final_path/data/config.php"
chown $app "$final_path/data/config.php"
#=================================================
# GENERIC FINALIZATION
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
# Set permissions to app files
# chown -R $app: $final_path
# chmod o-rwx $final_path
# chmod -R 755 $final_path/data
#=================================================
# SETUP SSOWAT
#=================================================

View file

@ -75,15 +75,6 @@ ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
# Recreate a dedicated PHP-FPM config
ynh_add_fpm_config --package="$extra_php_dependencies"
#=================================================
# RESTORE USER RIGHTS
#=================================================
# # Restore permissions on app files
# chown -R $app: $final_path
# chmod o-rwx $final_path
# chmod -R 755 $final_path/data
#=================================================
# GENERIC FINALIZATION
#=================================================

View file

@ -68,23 +68,8 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Upgrading source files..." --weight=5
# Create a temporary directory
#tmpdir="$(mktemp -d)"
# Backup the config file in the temp dir
#cp -R "$final_path/data" "$tmpdir/data"
# Remove the app directory securely
#ynh_secure_remove --file="$final_path"
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/data"
# Copy the admin saved settings from tmp directory to final path
#cp -RT "$tmpdir/data" "$final_path/data"
# Remove the tmp directory securely
#ynh_secure_remove --file="$tmpdir"
fi
chmod 750 "$final_path"
@ -124,15 +109,6 @@ ynh_add_config --template="../conf/config-dist.php" --destination="$final_path/d
chmod 400 "$final_path/data/config.php"
chown $app "$final_path/data/config.php"
#=================================================
# SECURE FILES AND DIRECTORIES
#=================================================
# Set permissions to app files
# chown -R $app: $final_path
# chmod o-rwx $final_path
# chmod -R 755 $final_path/data
#=================================================
# RELOAD NGINX
#=================================================