mirror of
https://github.com/YunoHost-Apps/dolibarr_ynh.git
synced 2024-09-03 18:35:53 +02:00
Fix file access
This commit is contained in:
parent
fd6522218a
commit
3ee4187d60
2 changed files with 4 additions and 4 deletions
|
@ -250,7 +250,7 @@ ynh_store_file_checksum --file="$final_path/htdocs/conf/conf.php"
|
||||||
ynh_script_progression --message="Configuring permissions..." --weight=1
|
ynh_script_progression --message="Configuring permissions..." --weight=1
|
||||||
|
|
||||||
# Set permissions on app files
|
# Set permissions on app files
|
||||||
if [ ! -f $datadir/install.lock ]; then
|
if [ ! -f "$datadir/install.lock" ]; then
|
||||||
echo 'This is a lock file to prevent use of install pages (set with permission 440)' > "$datadir/install.lock"
|
echo 'This is a lock file to prevent use of install pages (set with permission 440)' > "$datadir/install.lock"
|
||||||
chown $app:$app "$datadir/install.lock"
|
chown $app:$app "$datadir/install.lock"
|
||||||
chmod 440 "$datadir/install.lock"
|
chmod 440 "$datadir/install.lock"
|
||||||
|
|
|
@ -302,7 +302,7 @@ ynh_use_logrotate --non-append
|
||||||
ynh_script_progression --message="Configuring permissions..." --weight=1
|
ynh_script_progression --message="Configuring permissions..." --weight=1
|
||||||
|
|
||||||
# Set permissions on app files
|
# Set permissions on app files
|
||||||
if [ ! -f $datadir/install.lock ]; then
|
if [ ! -f "$datadir/install.lock" ]; then
|
||||||
echo 'This is a lock file to prevent use of install pages (set with permission 440)' > "$datadir/install.lock"
|
echo 'This is a lock file to prevent use of install pages (set with permission 440)' > "$datadir/install.lock"
|
||||||
chown $app:$app "$datadir/install.lock"
|
chown $app:$app "$datadir/install.lock"
|
||||||
chmod 440 "$datadir/install.lock"
|
chmod 440 "$datadir/install.lock"
|
||||||
|
|
Loading…
Add table
Reference in a new issue