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 #6 from YunoHost-Apps/testing

fix install
This commit is contained in:
yalh76 2022-03-09 01:16:30 +01:00 committed by GitHub
commit e7e2712ff7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,13 +104,10 @@ 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
if [ ${PACKAGE_CHECK_EXEC:-0} -eq 1 ]; then ynh_exec_as $app curl -LO http://download.kiwix.org/zim/wikipedia/wikipedia_en_computer_maxi_2022-02.zim > /dev/null
pushd $datadir popd
curl -LO http://download.kiwix.org/zim/wikipedia/wikipedia_en_computer_maxi_2022-02.zim > /dev/null ynh_exec_as $app $final_path/kiwix-manage $datadir/library.xml add $datadir/*.zim
popd
sudo -u $app $final_path/kiwix-manage $datadir/library.xml add $datadir/*.zim
fi
#================================================= #=================================================
# SETUP SYSTEMD # SETUP SYSTEMD