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

Merge pull request #27 from YunoHost-Apps/patch

775
This commit is contained in:
Éric Gaspar 2021-09-25 23:07:39 +02:00 committed by GitHub
commit 87b33c8cf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -126,7 +126,7 @@ ynh_script_progression --message="Creating smarty3 folder for personal data..."
mkdir -p "${final_path}/store" mkdir -p "${final_path}/store"
mkdir -p "${final_path}/cache/smarty3" mkdir -p "${final_path}/cache/smarty3"
chmod -R 777 $final_path/store $final_path/cache chmod -R 775 $final_path/store $final_path/cache
# Copy the template install/htconfig.sample.php to .htconfig.php # Copy the template install/htconfig.sample.php to .htconfig.php
config="$final_path/.htconfig.php" config="$final_path/.htconfig.php"

View file

@ -117,7 +117,7 @@ if [ `cd $final_path && git rev-parse --is-inside-work-tree` ]; then
fi; fi;
done done
popd popd
chmod -R 777 $final_path/store chmod -R 775 $final_path/store
else else
# Create a temporary directory # Create a temporary directory
@ -139,7 +139,7 @@ else
cp -a "$tmpdir/.htconfig.php" "${final_path}" cp -a "$tmpdir/.htconfig.php" "${final_path}"
cp -a "$tmpdir/php.log" "${final_path}" cp -a "$tmpdir/php.log" "${final_path}"
ynh_secure_remove --file="$tmpdir" ynh_secure_remove --file="$tmpdir"
chmod -R 777 $final_path/store chmod -R 775 $final_path/store
mkdir $final_path/addon mkdir $final_path/addon
ynh_setup_source --dest_dir="$final_path/addon" --source_id="app_addons" ynh_setup_source --dest_dir="$final_path/addon" --source_id="app_addons"
fi fi