mirror of
https://github.com/YunoHost-Apps/librex_ynh.git
synced 2024-09-03 19:36:20 +02:00
commit
a8d010f44c
8 changed files with 14 additions and 15 deletions
|
@ -27,7 +27,7 @@ LibreX gives you results from Google, Qwant and popular torrent sites without sp
|
|||
- No 3rd party libs are used
|
||||
|
||||
|
||||
**Shipped version:** 2023.05.31~ynh3
|
||||
**Shipped version:** 2023.08.09~ynh1
|
||||
|
||||
**Demo:** https://librex.beparanoid.de
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ LibreX gives you results from Google, Qwant and popular torrent sites without sp
|
|||
- No 3rd party libs are used
|
||||
|
||||
|
||||
**Version incluse :** 2023.05.31~ynh3
|
||||
**Version incluse :** 2023.08.09~ynh1
|
||||
|
||||
**Démo :** https://librex.beparanoid.de
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[Unit]
|
||||
Description=LibreX: A privacy meta search engine
|
||||
Description=LibreX: Privacy meta search engine
|
||||
After=syslog.target network.target
|
||||
|
||||
[Service]
|
||||
|
|
|
@ -5,7 +5,7 @@ name = "LibreX"
|
|||
description.en = "Meta search engine for Google and popular torrent sites"
|
||||
description.fr = "Méta moteur de recherche pour Google et les sites torrent populaires"
|
||||
|
||||
version = "2023.05.31~ynh3"
|
||||
version = "2023.08.09~ynh1"
|
||||
|
||||
maintainers = ["eric_G"]
|
||||
|
||||
|
@ -16,7 +16,7 @@ admindoc = "https://github.com/hnhx/librex/wiki"
|
|||
code = "https://github.com/hnhx/librex"
|
||||
|
||||
[integration]
|
||||
yunohost = ">= 11.1.19"
|
||||
yunohost = ">= 11.2"
|
||||
architectures = "all"
|
||||
multi_instance = true
|
||||
ldap = false
|
||||
|
@ -36,8 +36,8 @@ ram.runtime = "50M"
|
|||
|
||||
[resources]
|
||||
[resources.sources.main]
|
||||
url = "https://github.com/hnhx/librex/archive/b8817a6e28d1de3de35a9f4abe9f501f6a1fe997.tar.gz"
|
||||
sha256 = "25fff03e949bacbaf01ff3eb71093ee2f3becc542777cf96f86cd7ea6572bdda"
|
||||
url = "https://github.com/hnhx/librex/archive/b5a9f12df91cb8ded541df291da58ce2f104fe62.tar.gz"
|
||||
sha256 = "b88ae9896b281f2929b4e48f947d261bb7ecd7e2c6bd5c378237be3606f6c9b5"
|
||||
autoupdate.upstream = "https://github.com/hnhx/librex"
|
||||
autoupdate.strategy = "latest_github_commit"
|
||||
|
||||
|
|
|
@ -28,12 +28,11 @@ ynh_change_url_nginx_config
|
|||
#=================================================
|
||||
# SPECIFIC MODIFICATIONS
|
||||
#=================================================
|
||||
#REMOVEME?
|
||||
domain="$new_domain"
|
||||
|
||||
ynh_add_config --template="../conf/opensearch.xml.example" --destination="$install_dir/opensearch.xml"
|
||||
|
||||
chmod 400 "$install_dir/opensearch.xml"
|
||||
chown $app:$app "$install_dir/opensearch.xml"
|
||||
chmod 650 "$install_dir/opensearch.xml"
|
||||
chown $app:www-data "$install_dir/opensearch.xml"
|
||||
|
||||
#=================================================
|
||||
# GENERIC FINALISATION
|
||||
|
|
|
@ -37,7 +37,7 @@ ynh_add_systemd_config
|
|||
# Use logrotate to manage application logfile(s)
|
||||
ynh_use_logrotate
|
||||
|
||||
yunohost service add $app --description="A privacy meta search engine" --log="/var/log/$app/$app.log"
|
||||
yunohost service add $app --description="Privacy meta search engine" --log="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# ADD A CONFIGURATION
|
||||
|
@ -50,7 +50,7 @@ ynh_add_config --template="../conf/opensearch.xml.example" --destination="$insta
|
|||
chmod 400 "$install_dir/config.php"
|
||||
chown $app:$app "$install_dir/config.php"
|
||||
chmod 650 "$install_dir/opensearch.xml"
|
||||
chown $app:$app "$install_dir/opensearch.xml"
|
||||
chown $app:www-data "$install_dir/opensearch.xml"
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
|
|
|
@ -34,7 +34,7 @@ systemctl enable $app.service --quiet
|
|||
|
||||
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
|
||||
|
||||
yunohost service add $app --description="A privacy meta search engine" --log="/var/log/$app/$app.log"
|
||||
yunohost service add $app --description="Privacy meta search engine" --log="/var/log/$app/$app.log"
|
||||
|
||||
ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log"
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ ynh_add_systemd_config
|
|||
# Use logrotate to manage app-specific logfile(s)
|
||||
ynh_use_logrotate --non-append
|
||||
|
||||
yunohost service add $app --description="A privacy meta search engine" --log="/var/log/$app/$app.log"
|
||||
yunohost service add $app --description="Privacy meta search engine" --log="/var/log/$app/$app.log"
|
||||
|
||||
#=================================================
|
||||
# START SYSTEMD SERVICE
|
||||
|
|
Loading…
Reference in a new issue