1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/xbackbone_ynh.git synced 2024-09-03 19:15:53 +02:00
This commit is contained in:
Éric Gaspar 2023-08-19 14:55:44 +02:00
parent 66e378ca41
commit b8e684c2a9
2 changed files with 7 additions and 7 deletions

View file

@ -2,14 +2,14 @@
return [ return [
'base_url' => 'https://__DOMAIN____PATH__', // no trailing slash 'base_url' => 'https://__DOMAIN____PATH__', // no trailing slash
'storage' => [
'driver' => 'local',
'path' => '__INSTALL_DIR__/storage',
],
'db' => [ 'db' => [
'connection' => 'sqlite', 'connection' => 'sqlite',
'dsn' => '__INSTALL_DIR__/resources/database/xbackbone.db', 'dsn' => '__INSTALL_DIR__/resources/database/xbackbone.db',
'username' => null, 'username' => null,
'password' => null, 'password' => null,
], ]
'storage' => [
'driver' => 'local',
'path' => '__INSTALL_DIR__/storage',
],
]; ];

View file

@ -15,7 +15,7 @@ source /usr/share/yunohost/helpers
ynh_script_progression --message="Setting up source files..." --weight=1 ynh_script_progression --message="Setting up source files..." --weight=1
ynh_setup_source --dest_dir="$install_dir" ynh_setup_source --dest_dir="$install_dir"
mkdir "$install_dir/storage"
chown -R $app:www-data "$install_dir" chown -R $app:www-data "$install_dir"
#================================================= #=================================================
@ -39,7 +39,7 @@ ynh_add_nginx_config
#================================================= #=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1 ynh_script_progression --message="Adding a configuration file..." --weight=1
ynh_add_config --template="../conf/config_old.php" --destination="$install_dir/config.php" ynh_add_config --template="../conf/config.php" --destination="$install_dir/config.php"
chmod 400 "$install_dir/config.php" chmod 400 "$install_dir/config.php"
chown $app:$app "$install_dir/config.php" chown $app:$app "$install_dir/config.php"