1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kiwix_ynh.git synced 2024-09-03 19:35:56 +02:00

Merge pull request #5 from YunoHost-Apps/testing

No zim download
This commit is contained in:
yalh76 2022-02-27 00:18:20 +01:00 committed by GitHub
commit 91de978f10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,11 +104,13 @@ chmod 750 "$datadir"
chmod -R o-rwx "$datadir" chmod -R o-rwx "$datadir"
chown -R $app:www-data "$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 # SETUP SYSTEMD