mirror of
https://github.com/YunoHost-Apps/cypht_ynh.git
synced 2024-09-03 18:26:09 +02:00
cleaning
This commit is contained in:
parent
e42b2efb7e
commit
ca0830ce43
3 changed files with 3 additions and 12 deletions
|
@ -63,6 +63,7 @@ ram.runtime = "50M"
|
||||||
[resources.install_dir]
|
[resources.install_dir]
|
||||||
|
|
||||||
[resources.data_dir]
|
[resources.data_dir]
|
||||||
|
subdirs = ["attachments", "users", "app_data"]
|
||||||
|
|
||||||
[resources.permissions]
|
[resources.permissions]
|
||||||
main.url = "/"
|
main.url = "/"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
# Composer version
|
# Composer version
|
||||||
YNH_COMPOSER_VERSION="2.3.5"
|
YNH_COMPOSER_VERSION="2.5.8"
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
|
|
|
@ -61,17 +61,6 @@ ynh_script_progression --message="Installing $app with Composer..." --weight=10
|
||||||
|
|
||||||
ynh_install_composer --install_args="--ignore-platform-reqs"
|
ynh_install_composer --install_args="--ignore-platform-reqs"
|
||||||
|
|
||||||
#=================================================
|
|
||||||
# CREATE DATA DIRECTORY
|
|
||||||
#=================================================
|
|
||||||
ynh_script_progression --message="Creating a data directory..." --weight=1
|
|
||||||
|
|
||||||
mkdir -p $data_dir/{attachments,users,app_data}
|
|
||||||
|
|
||||||
chmod 750 "$data_dir"
|
|
||||||
chmod -R o-rwx "$data_dir"
|
|
||||||
chown -R $app:www-data "$data_dir"
|
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# ADD A CONFIGURATION
|
# ADD A CONFIGURATION
|
||||||
#=================================================
|
#=================================================
|
||||||
|
@ -89,6 +78,7 @@ ynh_script_progression --message="Adding an admin..." --weight=3
|
||||||
|
|
||||||
#Generate the run-time configuration
|
#Generate the run-time configuration
|
||||||
php$phpversion $install_dir/scripts/config_gen.php
|
php$phpversion $install_dir/scripts/config_gen.php
|
||||||
|
|
||||||
# create an admin account
|
# create an admin account
|
||||||
php$phpversion $install_dir/scripts/create_account.php $admin $password
|
php$phpversion $install_dir/scripts/create_account.php $admin $password
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue