1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/teampass_ynh.git synced 2024-09-03 20:26:37 +02:00

Move maketpconfig.php to conf/ for simpler use, remove unused remaining sources/ dir

This commit is contained in:
Alexandre Aubin 2023-12-04 20:52:02 +01:00 committed by Félix Piédallu
parent 8c3c6b3992
commit 6eea26a059
2 changed files with 10 additions and 1 deletions

9
conf/maketpconfig.php Normal file
View file

@ -0,0 +1,9 @@
<?php
$SETTINGS['cpassman_dir'] = __DIR__;
$_SESSION['CPM'] = 1 ;
require_once $SETTINGS['cpassman_dir'] . '/includes/config/settings.php';
require_once $SETTINGS['cpassman_dir'] . '/sources/main.functions.php';
handleConfigFile('rebuild', $SETTINGS);
?>

View file

@ -80,7 +80,7 @@ ynh_add_config --template="../conf/settings.php" --destination="$install_dir/inc
ynh_script_progression --message="Creating tp.config.php file..."
pushd $install_dir
ynh_exec_as $app php$phpversion ./maketpconfig.php
ynh_exec_as $app php$phpversion $YNH_APP_BASEDIR/conf/maketpconfig.php
popd
#=================================================