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

Merge pull request #37 from YunoHost-Apps/rm-r

App using rm -rf that was unspotted so far ... to be reported as error by the linter
This commit is contained in:
anmol26s 2020-11-14 02:31:59 +05:30 committed by GitHub
commit 2738870563
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -82,11 +82,11 @@ fi
# Remove files for upgrade compatibilty from previous versions of Friendica # Remove files for upgrade compatibilty from previous versions of Friendica
if [ -f $final_path/.htconfig.php ]; then if [ -f $final_path/.htconfig.php ]; then
rm "$final_path/.htconfig.php" ynh_secure_remove "$final_path/.htconfig.php"
fi fi
if [ -f $final_path/.htconfig.php ]; then if [ -f $final_path/.htconfig.php ]; then
rm "$final_path/config/local.ini.php" ynh_secure_remove "$final_path/config/local.ini.php"
fi fi
@ -121,7 +121,7 @@ ynh_replace_string --match_string="OPEN" --replace_string="CLOSED" --target_fil
#Copy Addons #Copy Addons
rm -Rf "$final_path/addon" ynh_secure_remove "$final_path/addon"
ynh_setup_source --dest_dir="$final_path/addon" --source_id="addons" ynh_setup_source --dest_dir="$final_path/addon" --source_id="addons"
# 3 - some extra folders # 3 - some extra folders