mirror of
https://github.com/YunoHost-Apps/dolibarr_ynh.git
synced 2024-09-03 18:35:53 +02:00
Update install
This commit is contained in:
parent
0c49aabfb1
commit
d94120af1c
1 changed files with 6 additions and 6 deletions
|
@ -57,7 +57,7 @@ ynh_setup_source --dest_dir="$install_dir"
|
||||||
|
|
||||||
# Create necessary files
|
# Create necessary files
|
||||||
data_dir=$install_dir/documents
|
data_dir=$install_dir/documents
|
||||||
touch $install_dir/htdocs/conf/conf.php
|
#touch $install_dir/htdocs/conf/conf.php
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PHP-FPM CONFIGURATION
|
# PHP-FPM CONFIGURATION
|
||||||
|
@ -170,11 +170,11 @@ ynh_store_file_checksum --file="$install_dir/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 "$data_dir/install.lock" ]; then
|
# if [ ! -f "$data_dir/install.lock" ]; then
|
||||||
echo 'This is a lock file to prevent use of install pages (set with permission 440)' > "$data_dir/install.lock"
|
# echo 'This is a lock file to prevent use of install pages (set with permission 440)' > "$data_dir/install.lock"
|
||||||
chown $app:$app "$data_dir/install.lock"
|
# chown $app:$app "$data_dir/install.lock"
|
||||||
chmod 440 "$data_dir/install.lock"
|
# chmod 440 "$data_dir/install.lock"
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
chmod 750 "$install_dir"
|
chmod 750 "$install_dir"
|
||||||
chmod -R o-rwx "$install_dir"
|
chmod -R o-rwx "$install_dir"
|
||||||
|
|
Loading…
Add table
Reference in a new issue