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:
parent
420c342ede
commit
fd75c10559
1 changed files with 7 additions and 5 deletions
|
@ -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
|
||||||
|
if [ $(grep yunohost-cli "$install_dir/wakka.config.php" | wc -l) != "0" ]; then
|
||||||
ynh_script_progression --message="Import YunoHost apps in bazar" --weight=2
|
ynh_script_progression --message="Import YunoHost apps in bazar" --weight=2
|
||||||
pushd $install_dir
|
pushd $install_dir
|
||||||
ynh_exec_as $app ./yeswicli importer:sync -s yunohost-cli
|
ynh_exec_as $app ./yeswicli importer:sync -s yunohost-cli
|
||||||
popd
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# SECURE FILES AND DIRECTORIES
|
# SECURE FILES AND DIRECTORIES
|
||||||
|
|
Loading…
Reference in a new issue