1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kiwix_ynh.git synced 2024-09-03 19:35:56 +02:00
This commit is contained in:
ericgaspar 2022-01-18 11:18:11 +01:00
parent 049be018d8
commit 2b984410bd
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 4 additions and 5 deletions

View file

@ -5,7 +5,7 @@ Description=Kiwix
Type=simple
User=__APP__
Group=__APP__
ExecStart=__FINALPATH__/bin/kiwix-serve --daemon --address 127.0.0.1 --port __PORT__ --library __DATADIR__/library.xml --urlRootLocation=__PATH__/
ExecStart=__FINALPATH__/kiwix-serve --daemon --address 127.0.0.1 --port __PORT__ --library __DATADIR__/library.xml --urlRootLocation=__PATH__/
RemainAfterExit=yes
Restart=on-abort
RestartSec=5s

View file

@ -71,14 +71,13 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
ynh_script_progression --message="Setting up source files..." --weight=3
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
mkdir -p $final_path/bin
# Download, check integrity, uncompress and patch the source from app.src
ynh_setup_source --dest_dir="$final_path/bin" --source_id="$architecture"
ynh_setup_source --dest_dir="$final_path" --source_id="$architecture"
chmod 750 "$final_path"
chmod -R o-rwx "$final_path"
chown -R $app:www-data "$final_path"
chmod +x $final_path/bin/{kiwix-manage,kiwix-serve,kiwix-search,kiwix-read}
chmod +x $final_path/{kiwix-manage,kiwix-serve,kiwix-search,kiwix-read}
#=================================================
# NGINX CONFIGURATION
@ -106,7 +105,7 @@ pushd $datadir
curl -LO http://download.kiwix.org/zim/wikipedia/wikipedia_en_computer_maxi_2020-08.zim > /dev/null
popd
sudo -u $app $final_path/bin/kiwix-manage $datadir/library.xml add $datadir/*.zim
sudo -u $app $final_path/kiwix-manage $datadir/library.xml add $datadir/*.zim
#=================================================
# SETUP SYSTEMD