mirror of
https://github.com/YunoHost-Apps/syncthing_ynh.git
synced 2024-09-03 20:26:23 +02:00
Fix recursive chmod
This commit is contained in:
parent
dd38151dd5
commit
11e658cad5
3 changed files with 6 additions and 6 deletions
|
@ -89,7 +89,7 @@ ynh_app_setting_set --app=$app --key=final_path --value=$final_path
|
||||||
# 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="$final_path" --source_id=$architecture
|
ynh_setup_source --dest_dir="$final_path" --source_id=$architecture
|
||||||
|
|
||||||
chmod -R 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:$app "$final_path"
|
chown -R $app:$app "$final_path"
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ ynh_script_progression --message="Creating sync directory..."
|
||||||
|
|
||||||
# Make directories and set rights
|
# Make directories and set rights
|
||||||
mkdir -p "$sync_home"
|
mkdir -p "$sync_home"
|
||||||
chmod -R 750 "$sync_home"
|
chmod 750 "$sync_home"
|
||||||
chmod -R o-rwx "$sync_home"
|
chmod -R o-rwx "$sync_home"
|
||||||
chown -R $app:$app "$sync_home"
|
chown -R $app:$app "$sync_home"
|
||||||
|
|
||||||
|
|
|
@ -75,7 +75,7 @@ ynh_script_progression --message="Restoring the app main directory..."
|
||||||
|
|
||||||
ynh_restore_file --origin_path="$final_path"
|
ynh_restore_file --origin_path="$final_path"
|
||||||
|
|
||||||
chmod -R 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:$app "$final_path"
|
chown -R $app:$app "$final_path"
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ ynh_restore_file --origin_path="$sync_home" --not_mandatory
|
||||||
|
|
||||||
# Make directories and set rights
|
# Make directories and set rights
|
||||||
mkdir -p "$sync_home"
|
mkdir -p "$sync_home"
|
||||||
chmod -R 750 "$sync_home"
|
chmod 750 "$sync_home"
|
||||||
chmod -R o-rwx "$sync_home"
|
chmod -R o-rwx "$sync_home"
|
||||||
chown -R $app:$app "$sync_home"
|
chown -R $app:$app "$sync_home"
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,7 @@ then
|
||||||
ynh_setup_source --dest_dir="$final_path" --source_id=$architecture
|
ynh_setup_source --dest_dir="$final_path" --source_id=$architecture
|
||||||
fi
|
fi
|
||||||
|
|
||||||
chmod -R 750 "$final_path"
|
chmod 750 "$final_path"
|
||||||
chmod -R o-rwx "$final_path"
|
chmod -R o-rwx "$final_path"
|
||||||
chown -R $app:$app "$final_path"
|
chown -R $app:$app "$final_path"
|
||||||
|
|
||||||
|
@ -162,7 +162,7 @@ ynh_script_progression --message="Creating sync directory..."
|
||||||
|
|
||||||
# Make directories and set rights
|
# Make directories and set rights
|
||||||
mkdir -p "$sync_home"
|
mkdir -p "$sync_home"
|
||||||
chmod -R 750 "$sync_home"
|
chmod 750 "$sync_home"
|
||||||
chmod -R o-rwx "$sync_home"
|
chmod -R o-rwx "$sync_home"
|
||||||
chown -R $app:$app "$sync_home"
|
chown -R $app:$app "$sync_home"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue