1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yeswiki_ynh.git synced 2024-09-03 18:05:56 +02:00

import apps only if data source is configured

This commit is contained in:
Douze Baie 2024-06-15 00:22:27 +02:00
parent 420c342ede
commit fd75c10559

View file

@ -93,11 +93,13 @@ fi
# ToDo : Add app importer config in wakka.config.php if it is not already there ? # ToDo : Add app importer config in wakka.config.php if it is not already there ?
# At last, run the YunoHost app importer # At last, run the YunoHost app importer if its data source is configured
ynh_script_progression --message="Import YunoHost apps in bazar" --weight=2 if [ $(grep yunohost-cli "$install_dir/wakka.config.php" | wc -l) != "0" ]; then
pushd $install_dir ynh_script_progression --message="Import YunoHost apps in bazar" --weight=2
ynh_exec_as $app ./yeswicli importer:sync -s yunohost-cli pushd $install_dir
popd ynh_exec_as $app ./yeswicli importer:sync -s yunohost-cli
popd
fi
#================================================= #=================================================
# SECURE FILES AND DIRECTORIES # SECURE FILES AND DIRECTORIES