From d52af4f084708c65fa48aef80f3a454ddd7412a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 31 Aug 2024 08:28:19 +0200 Subject: [PATCH] cleaning --- doc/ADMIN_fr.md | 1 + doc/POST_INSTALL_fr.md | 8 ++++++++ scripts/change_url | 3 --- scripts/install | 5 ----- scripts/restore | 2 -- scripts/upgrade | 2 -- 6 files changed, 9 insertions(+), 12 deletions(-) create mode 100644 doc/ADMIN_fr.md create mode 100644 doc/POST_INSTALL_fr.md diff --git a/doc/ADMIN_fr.md b/doc/ADMIN_fr.md new file mode 100644 index 0000000..c14e35c --- /dev/null +++ b/doc/ADMIN_fr.md @@ -0,0 +1 @@ +Par défaut, le chemin racine est défini sur `__DATA_DIR__`. Vous pouvez choisir un chemin racine différent dans le fichier de configuration du navigateur de fichiers : `__INSTALL_DIR__/settings.json` et modifier l'entrée **root** comme vous le souhaitez. (Vous devrez peut-être définir les autorisations correctes pour le nouveau chemin). \ No newline at end of file diff --git a/doc/POST_INSTALL_fr.md b/doc/POST_INSTALL_fr.md new file mode 100644 index 0000000..17d3250 --- /dev/null +++ b/doc/POST_INSTALL_fr.md @@ -0,0 +1,8 @@ +#### Identifiants par défaut + +``` +nom d'utilisateur : admin +mot de passe : admin +``` + +Vous devez modifier le mot de passe et, si vous le pouvez, le nom d'utilisateur pour la meilleure sécurité possible. \ No newline at end of file diff --git a/scripts/change_url b/scripts/change_url index ad95310..3f3b3cb 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -25,9 +25,6 @@ ynh_script_progression "Adding $app's configuration..." path="$new_path" ynh_config_add --template="settings.json" --destination="$install_dir/settings.json" -#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 600 "$install_dir/settings.json" -#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown $app:$app "$install_dir/settings.json" - #================================================= # START SYSTEMD SERVICE #================================================= diff --git a/scripts/install b/scripts/install index 44ef2dd..6d71ef2 100755 --- a/scripts/install +++ b/scripts/install @@ -13,8 +13,6 @@ ynh_setup_source --dest_dir="$install_dir" touch $install_dir/database.db -#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir" -#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:www-data "$install_dir" chmod -R +x "$install_dir/filebrowser" #================================================= @@ -37,9 +35,6 @@ ynh_script_progression "Adding $app's configuration..." ynh_config_add --template="settings.json" --destination="$install_dir/settings.json" -#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod 600 "$install_dir/settings.json" -#REMOVEME? Assuming the file is setup using ynh_config_add, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown $app:$app "$install_dir/settings.json" - #================================================= # START SYSTEMD SERVICE #================================================= diff --git a/scripts/restore b/scripts/restore index 267c30c..7ef3146 100755 --- a/scripts/restore +++ b/scripts/restore @@ -10,8 +10,6 @@ ynh_script_progression "Restoring the app main directory..." ynh_restore "$install_dir" -#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir" -#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:www-data "$install_dir" chmod -R +x "$install_dir/filebrowser" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index fe168c1..bbe8c9f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -18,8 +18,6 @@ ynh_script_progression "Upgrading source files..." # Download, check integrity, uncompress and patch the source from app.src ynh_setup_source --dest_dir="$install_dir" --keep="settings.json" -#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chmod -R o-rwx "$install_dir" -#REMOVEME? Assuming the install dir is setup using ynh_setup_source, the proper chmod/chowns are now already applied and it shouldn't be necessary to tweak perms | chown -R $app:www-data "$install_dir" chmod -R +x "$install_dir/filebrowser" #=================================================