1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/freshrss_ynh.git synced 2024-09-03 18:36:33 +02:00

new way to install dependencies

This commit is contained in:
Clément 2018-07-07 11:21:43 +02:00
parent df5a5cb210
commit f5f37c9f60
4 changed files with 8 additions and 8 deletions

View file

@ -36,6 +36,5 @@ extract_freshrss() {
}
install_freshrss_dependencies() {
ynh_package_install_from_equivs ../conf/${DEPS_PKG_NAME}.control \
|| ynh_die "Unable to install dependencies"
ynh_install_app_dependencies php-cli php-gmp
}

View file

@ -41,9 +41,8 @@ fi
# Check domain/path availability
sudo yunohost app register-url $app $domain $path
#install php5-cli
ynh_package_install_from_equivs ../conf/${DEPS_PKG_NAME}.control \
|| ynh_die "Unable to install dependencies"
#install php dependencies
install_freshrss_dependencies
# Generate random DES key & password
deskey=$(ynh_string_random)

View file

@ -19,6 +19,9 @@ sudo yunohost app register-url $app $domain $path
db_pass=$(ynh_app_setting_get $app mysqlpwd)
#install php dependencies if necessary
install_freshrss_dependencies
# Restore sources & data
final_path=/var/www/$app
ynh_restore_file "$final_path"

View file

@ -11,9 +11,8 @@ set -eu
app=$YNH_APP_INSTANCE_NAME
FINAL_PATH="/var/www/$app"
#install extention for api if necessary
ynh_package_install_from_equivs ../conf/${DEPS_PKG_NAME}.control \
|| ynh_die "Unable to install dependencies"
#install php dependencies if necessary
install_freshrss_dependencies
# Check destination directory
[[ ! -d $FINAL_PATH ]] && ynh_die \