mirror of
https://github.com/YunoHost-Apps/meilisearch_ynh.git
synced 2024-09-03 19:45:59 +02:00
cleaning
This commit is contained in:
parent
fe872497e0
commit
052d6926ff
3 changed files with 2 additions and 4 deletions
|
@ -17,7 +17,6 @@ ynh_script_progression --message="Setting up source files..." --weight=1
|
||||||
# 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="$install_dir"
|
ynh_setup_source --dest_dir="$install_dir"
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
chmod +x "$install_dir/meilisearch"
|
chmod +x "$install_dir/meilisearch"
|
||||||
|
@ -47,7 +46,7 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
key=$(ynh_string_random --length=16)
|
key=$(ynh_string_random --length=16)
|
||||||
|
|
||||||
ynh_add_config --template="../conf/config.toml" --destination="$install_dir/config.toml"
|
ynh_add_config --template="config.toml" --destination="$install_dir/config.toml"
|
||||||
|
|
||||||
chmod 400 "$install_dir/config.toml"
|
chmod 400 "$install_dir/config.toml"
|
||||||
chown $app:$app "$install_dir/config.toml"
|
chown $app:$app "$install_dir/config.toml"
|
||||||
|
|
|
@ -25,7 +25,6 @@ ynh_script_progression --message="Restoring Meilisearch main directory..." --wei
|
||||||
|
|
||||||
ynh_restore_file --origin_path="$install_dir"
|
ynh_restore_file --origin_path="$install_dir"
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
chown -R $app:www-data "$install_dir"
|
chown -R $app:www-data "$install_dir"
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1
|
||||||
|
|
||||||
key=$(ynh_string_random --length=16)
|
key=$(ynh_string_random --length=16)
|
||||||
|
|
||||||
ynh_add_config --template="../conf/config.toml" --destination="$install_dir/config.toml"
|
ynh_add_config --template="config.toml" --destination="$install_dir/config.toml"
|
||||||
|
|
||||||
chmod 400 "$install_dir/config.toml"
|
chmod 400 "$install_dir/config.toml"
|
||||||
chown $app:$app "$install_dir/config.toml"
|
chown $app:$app "$install_dir/config.toml"
|
||||||
|
|
Loading…
Reference in a new issue