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:
parent
b0aed70573
commit
f1ebbd00ba
4 changed files with 0 additions and 46 deletions
|
@ -7,8 +7,6 @@ location / {
|
||||||
if ($scheme = http) {
|
if ($scheme = http) {
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
}
|
}
|
||||||
|
|
||||||
more_set_headers "X-Content-Type-Options: nosniff";
|
|
||||||
|
|
||||||
index index.php;
|
index index.php;
|
||||||
|
|
||||||
|
|
|
@ -94,17 +94,6 @@ ynh_add_config --template="../conf/config-dist.php" --destination="$final_path/d
|
||||||
chmod 400 "$final_path/data/config.php"
|
chmod 400 "$final_path/data/config.php"
|
||||||
chown $app "$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
|
# SETUP SSOWAT
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -75,15 +75,6 @@ ynh_restore_file --origin_path="/etc/php/$phpversion/fpm/pool.d/$app.conf"
|
||||||
# Recreate a dedicated PHP-FPM config
|
# Recreate a dedicated PHP-FPM config
|
||||||
ynh_add_fpm_config --package="$extra_php_dependencies"
|
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
|
# GENERIC FINALIZATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -68,23 +68,8 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading source files..." --weight=5
|
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
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/data"
|
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
|
fi
|
||||||
|
|
||||||
chmod 750 "$final_path"
|
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"
|
chmod 400 "$final_path/data/config.php"
|
||||||
chown $app "$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
|
# RELOAD NGINX
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue