1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00

Remove old commented pieces of code

This commit is contained in:
Alexandre Aubin 2021-08-15 00:45:40 +02:00 committed by GitHub
parent 4ca0bb3af5
commit 58b42e1357
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,8 +102,6 @@ ynh_script_progression --message="Upgrading source files..."
# Download, check integrity, uncompress and patch the source from app.src
# into tmp dir
# tmp_path=$(mktemp -d)
# ynh_setup_source "$tmp_path"
#=================================================
# NGINX CONFIGURATION
@ -133,21 +131,7 @@ then
ynh_setup_source --dest_dir="$final_path" --keep="$final_path/data/config.php $final_path/data/users/. $final_path/extensions/."
fi
# #old version cleanup
# if [ -f $final_path/data/user.php.dist ]; then
# ynh_secure_remove $final_path/data/user.php.dist
# fi
# #restore config
# ynh_secure_remove $tmp_path/data/do-install.txt
# cp $final_path/data/config.php $tmp_path/data/config.php
# cp -r $final_path/data/users/. $tmp_path/data/users/
# cp -r $final_path/extensions/. $tmp_path/extensions/
# # Set permissions to freshrss directory
# # Clean up existing files and copy new files to the right place
# ynh_secure_remove "$final_path"
# cp -rp "$tmp_path" "$final_path"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"