mirror of
https://github.com/YunoHost-Apps/kiwix_ynh.git
synced 2024-09-03 19:35:56 +02:00
fix install
This commit is contained in:
parent
7ba8a4bf53
commit
b99c050817
1 changed files with 4 additions and 7 deletions
|
@ -104,13 +104,10 @@ chmod 750 "$datadir"
|
|||
chmod -R o-rwx "$datadir"
|
||||
chown -R $app:www-data "$datadir"
|
||||
|
||||
|
||||
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
|
||||
pushd $datadir
|
||||
ynh_exec_as $app curl -LO http://download.kiwix.org/zim/wikipedia/wikipedia_en_computer_maxi_2022-02.zim > /dev/null
|
||||
popd
|
||||
ynh_exec_as $app $final_path/kiwix-manage $datadir/library.xml add $datadir/*.zim
|
||||
|
||||
#=================================================
|
||||
# SETUP SYSTEMD
|
||||
|
|
Loading…
Reference in a new issue