From 7d2978c367901af3318b829be88caa12f499d7f8 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 26 Feb 2022 09:23:42 +0100 Subject: [PATCH] Update install --- scripts/install | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/install b/scripts/install index 347ae75..59e1f8b 100755 --- a/scripts/install +++ b/scripts/install @@ -104,11 +104,13 @@ chmod 750 "$datadir" chmod -R o-rwx "$datadir" chown -R $app:www-data "$datadir" -pushd $datadir - curl -LO http://download.kiwix.org/zim/wikipedia/wikipedia_en_computer_maxi_2022-02.zim > /dev/null -popd -sudo -u $app $final_path/kiwix-manage $datadir/library.xml add $datadir/*.zim +if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then + pushd $datadir + curl -LO http://download.kiwix.org/zim/wikipedia/wikipedia_en_computer_maxi_2022-02.zim > /dev/null + popd + sudo -u $app $final_path/kiwix-manage $datadir/library.xml add $datadir/*.zim +fi #================================================= # SETUP SYSTEMD