mirror of
https://github.com/YunoHost-Apps/z-push_ynh.git
synced 2024-09-03 18:05:58 +02:00
Fix repo
This commit is contained in:
parent
d847c014eb
commit
252f1959d5
6 changed files with 17 additions and 24 deletions
14
README.md
14
README.md
|
@ -26,18 +26,6 @@ Quick description of this app.
|
||||||
- [x] The sources are based on http://download.z-push.org/final/
|
- [x] The sources are based on http://download.z-push.org/final/
|
||||||
- [x] Use of version 2.4.5 final
|
- [x] Use of version 2.4.5 final
|
||||||
|
|
||||||
## Screenshots
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## Demo
|
|
||||||
|
|
||||||
* [Official demo](Link to a demo site for this app)
|
|
||||||
|
|
||||||
## Licence
|
|
||||||
|
|
||||||
* LICENSE: AGPL-3.0
|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
How to configure this app: by an admin panel, a plain file with SSH, or any other way.
|
How to configure this app: by an admin panel, a plain file with SSH, or any other way.
|
||||||
|
@ -74,7 +62,7 @@ https://yunohost.org/packaging_apps
|
||||||
## Links
|
## Links
|
||||||
|
|
||||||
* Report a bug: https://github.com/YunoHost-Apps/z-push_ynh/issues
|
* Report a bug: https://github.com/YunoHost-Apps/z-push_ynh/issues
|
||||||
* App website: Link to the official website of this app
|
* App website: http://z-push.org/
|
||||||
* YunoHost website: https://yunohost.org/
|
* YunoHost website: https://yunohost.org/
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
@ -71,9 +71,8 @@ ynh_app_setting_set $app log_path $log_path
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_print_info "Installing dependencies..."
|
ynh_print_info "Installing dependencies..."
|
||||||
|
|
||||||
echo "deb http://repo.z-hub.io/z-push:/final/Debian_9.0/ /" | tee /etc/apt/sources.list.d/z-push.list
|
ynh_install_extra_repo --repo="deb http://repo.z-hub.io/z-push:/final/Debian_9.0/ /" --key="http://repo.z-hub.io/z-push:/final/Debian_9.0/Release.key"
|
||||||
wget -qO - http://repo.z-hub.io/z-push:/final/Debian_9.0/Release.key | sudo apt-key add -
|
|
||||||
ynh_package_update
|
|
||||||
ynh_install_app_dependencies z-push-common z-push-backend-caldav z-push-backend-carddav z-push-backend-combined z-push-backend-imap z-push-backend-ldap z-push-backend-galsearch-ldap z-push-autodiscover php-memcached php-cli php-soap
|
ynh_install_app_dependencies z-push-common z-push-backend-caldav z-push-backend-carddav z-push-backend-combined z-push-backend-imap z-push-backend-ldap z-push-backend-galsearch-ldap z-push-autodiscover php-memcached php-cli php-soap
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
source _common.sh
|
source _common.sh
|
||||||
source /usr/share/yunohost/helpers
|
source /usr/share/yunohost/helpers
|
||||||
|
source ynh_add_secure_repos__2
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# LOAD SETTINGS
|
# LOAD SETTINGS
|
||||||
|
@ -32,7 +33,7 @@ ynh_print_info "Removing dependencies"
|
||||||
# Remove metapackage and its dependencies
|
# Remove metapackage and its dependencies
|
||||||
ynh_remove_app_dependencies
|
ynh_remove_app_dependencies
|
||||||
|
|
||||||
ynh_remove_extra_repo --name=z-push
|
ynh_remove_extra_repo
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# REMOVE APP MAIN DIR
|
# REMOVE APP MAIN DIR
|
||||||
|
|
|
@ -74,9 +74,8 @@ ynh_restore_file "/etc/php/7.0/fpm/pool.d/$app.conf"
|
||||||
# REINSTALL DEPENDENCIES
|
# REINSTALL DEPENDENCIES
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
||||||
echo "deb http://repo.z-hub.io/z-push:/final/Debian_9.0/ /" | tee /etc/apt/sources.list.d/z-push.list
|
ynh_install_extra_repo --repo="deb http://repo.z-hub.io/z-push:/final/Debian_9.0/ /" --key="http://repo.z-hub.io/z-push:/final/Debian_9.0/Release.key"
|
||||||
wget -qO - http://repo.z-hub.io/z-push:/final/Debian_9.0/Release.key | sudo apt-key add -
|
|
||||||
ynh_package_update
|
|
||||||
ynh_install_app_dependencies z-push-common z-push-backend-caldav z-push-backend-carddav z-push-backend-combined z-push-backend-imap z-push-backend-ldap z-push-backend-galsearch-ldap z-push-autodiscover php-memcached php-cli php-soap
|
ynh_install_app_dependencies z-push-common z-push-backend-caldav z-push-backend-carddav z-push-backend-combined z-push-backend-imap z-push-backend-ldap z-push-backend-galsearch-ldap z-push-autodiscover php-memcached php-cli php-soap
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -97,9 +97,8 @@ ynh_add_nginx_config
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_print_info "Upgrading dependencies..."
|
ynh_print_info "Upgrading dependencies..."
|
||||||
|
|
||||||
echo "deb http://repo.z-hub.io/z-push:/final/Debian_9.0/ /" | tee /etc/apt/sources.list.d/z-push.list
|
ynh_install_extra_repo --repo="deb http://repo.z-hub.io/z-push:/final/Debian_9.0/ /" --key="http://repo.z-hub.io/z-push:/final/Debian_9.0/Release.key"
|
||||||
wget -qO - http://repo.z-hub.io/z-push:/final/Debian_9.0/Release.key | sudo apt-key add -
|
|
||||||
ynh_package_update
|
|
||||||
ynh_install_app_dependencies z-push-common z-push-backend-caldav z-push-backend-carddav z-push-backend-combined z-push-backend-imap z-push-backend-ldap z-push-backend-galsearch-ldap z-push-autodiscover php-memcached php-cli php-soap
|
ynh_install_app_dependencies z-push-common z-push-backend-caldav z-push-backend-carddav z-push-backend-combined z-push-backend-imap z-push-backend-ldap z-push-backend-galsearch-ldap z-push-autodiscover php-memcached php-cli php-soap
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
|
@ -137,7 +137,13 @@ ynh_install_extra_repo () {
|
||||||
if [ -n "$key" ]
|
if [ -n "$key" ]
|
||||||
then
|
then
|
||||||
mkdir -p "/etc/apt/trusted.gpg.d"
|
mkdir -p "/etc/apt/trusted.gpg.d"
|
||||||
wget -q "$key" -O - | $wget_append /etc/apt/trusted.gpg.d/$name.gpg
|
if [[ "$(basename "$key")" =~ ".asc" ]]
|
||||||
|
then
|
||||||
|
local key_ext=asc
|
||||||
|
else
|
||||||
|
local key_ext=gpg
|
||||||
|
fi
|
||||||
|
wget -q "$key" -O - | $wget_append /etc/apt/trusted.gpg.d/$name.$key_ext
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Update the list of package with the new repo
|
# Update the list of package with the new repo
|
||||||
|
@ -160,6 +166,7 @@ ynh_remove_extra_repo () {
|
||||||
ynh_secure_remove "/etc/apt/sources.list.d/$name.list"
|
ynh_secure_remove "/etc/apt/sources.list.d/$name.list"
|
||||||
ynh_secure_remove "/etc/apt/preferences.d/$name"
|
ynh_secure_remove "/etc/apt/preferences.d/$name"
|
||||||
ynh_secure_remove "/etc/apt/trusted.gpg.d/$name.gpg"
|
ynh_secure_remove "/etc/apt/trusted.gpg.d/$name.gpg"
|
||||||
|
ynh_secure_remove "/etc/apt/trusted.gpg.d/$name.asc"
|
||||||
|
|
||||||
# Update the list of package to exclude the old repo
|
# Update the list of package to exclude the old repo
|
||||||
ynh_package_update
|
ynh_package_update
|
||||||
|
|
Loading…
Add table
Reference in a new issue