mirror of
https://github.com/YunoHost-Apps/monica_ynh.git
synced 2024-09-03 19:46:23 +02:00
Added permission for storage folder and updated readme
This commit is contained in:
parent
1b62e7f0dd
commit
0be49bba60
4 changed files with 16 additions and 7 deletions
|
@ -43,8 +43,8 @@ Change the settings of the app by changing the values in .env
|
|||
## What works?
|
||||
* [X] Update and remove script
|
||||
* [X] Upgrade script
|
||||
* [X] Backup and restore script (**Need testing**)
|
||||
* [X] Multi-instance (**Need testing**)
|
||||
* [X] Backup and restore script
|
||||
* [X] Multi-instance
|
||||
* [x] make root domain redirect to index.php
|
||||
* [x] Chang URL (Need testing,backup before trying this)
|
||||
* [ ] LDAP/SSO support
|
||||
|
|
|
@ -144,22 +144,28 @@ ynh_replace_string --match_string="language" --replace_string="$language" --targ
|
|||
if [ $dav_support -eq 0 ]
|
||||
then
|
||||
ynh_replace_string --match_string="__DAV__" --replace_string="false" --target_file="$config"
|
||||
dav="Yes"
|
||||
else
|
||||
ynh_replace_string --match_string="__DAV__" --replace_string="true" --target_file="$config"
|
||||
dav="No"
|
||||
fi
|
||||
# Enable or disable signup for public users
|
||||
if [ $signup -eq 1 ]
|
||||
then
|
||||
ynh_replace_string --match_string="__SIGNUP__" --replace_string="false" --target_file="$config"
|
||||
sign="No"
|
||||
else
|
||||
ynh_replace_string --match_string="__SIGNUP__" --replace_string="true" --target_file="$config"
|
||||
sign="Yes"
|
||||
fi
|
||||
# Enable or disable two factor authentication support for users
|
||||
if [ $two_factor -eq 1 ]
|
||||
then
|
||||
ynh_replace_string --match_string="__TWO_FACTOR__" --replace_string="true" --target_file="$config"
|
||||
twof="Yes"
|
||||
else
|
||||
ynh_replace_string --match_string="__TWO_FACTOR__" --replace_string="false" --target_file="$config"
|
||||
twof="No"
|
||||
fi
|
||||
|
||||
#=================================================
|
||||
|
@ -209,7 +215,7 @@ ynh_script_progression --message="Securing files and directories..."
|
|||
|
||||
# Set permissions to app files
|
||||
chown -R $app: $final_path
|
||||
|
||||
chmod -R 775 "$final_path/storage"
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
#=================================================
|
||||
|
@ -245,6 +251,9 @@ echo "
|
|||
| username: $email
|
||||
| password: $password
|
||||
| URL: https://$domain
|
||||
| Dav support: $dav
|
||||
| Allowed registration for new users: $sign
|
||||
| Allowed Two Factor Authentication for accounts: $twof
|
||||
| It is advised to change your password after first login.
|
||||
-----------------------------------------------------------
|
||||
Setup is done. Have fun.
|
||||
|
|
|
@ -75,7 +75,7 @@ ynh_script_progression --message="Restoring user rights..."
|
|||
|
||||
# Restore permissions on app files
|
||||
chown -R $app: $final_path
|
||||
|
||||
chmod -R 775 "$final_path/storage"
|
||||
#=================================================
|
||||
# RESTORE THE PHP-FPM CONFIGURATION
|
||||
#=================================================
|
||||
|
|
|
@ -254,7 +254,7 @@ ynh_script_progression --message="Securing files and directories..."
|
|||
|
||||
# Set permissions on app files
|
||||
chown -R $app: $final_path
|
||||
|
||||
chmod -R 775 "$final_path/storage"
|
||||
#=================================================
|
||||
# SETUP SSOWAT
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue