1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/tinyfilemanager_ynh.git synced 2024-09-03 20:36:01 +02:00

Update install

This commit is contained in:
jarod5001 2022-05-16 21:22:41 +01:00 committed by GitHub
parent 3def0e6bc4
commit a08cfd1a6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -261,10 +261,6 @@ ynh_add_config --template="../conf/config.php" --destination="$final_path/config
chmod 600 "$final_path/config.php"
chown $app:$app "$final_path/config.php"
ynh_replace_string --match_string='$CONFIG = '{"lang":"en","error_reporting":false,"show_hidden":false,"hide_Cols":false,"calc_folder":false,"theme":"light"}';'
--replace_string='$CONFIG = '{"lang":"$language","error_reporting":false,"show_hidden":true,"hide_Cols":false,"calc_folder":false,"theme":"light"}';'
--target_file="$final_path/index.php"
### For more complex cases where you want to replace stuff using regexes,
### you shoud rely on ynh_replace_string (which is basically a wrapper for sed)
### When doing so, you also need to manually call ynh_store_file_checksum