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

Update install

This commit is contained in:
ericgaspar 2022-02-26 09:23:42 +01:00
parent eda22d64ba
commit 7d2978c367

View file

@ -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