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() { install_freshrss_dependencies() {
ynh_package_install_from_equivs ../conf/${DEPS_PKG_NAME}.control \ ynh_install_app_dependencies php-cli php-gmp
|| ynh_die "Unable to install dependencies"
} }

View file

@ -41,9 +41,8 @@ fi
# Check domain/path availability # Check domain/path availability
sudo yunohost app register-url $app $domain $path sudo yunohost app register-url $app $domain $path
#install php5-cli #install php dependencies
ynh_package_install_from_equivs ../conf/${DEPS_PKG_NAME}.control \ install_freshrss_dependencies
|| ynh_die "Unable to install dependencies"
# Generate random DES key & password # Generate random DES key & password
deskey=$(ynh_string_random) 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) db_pass=$(ynh_app_setting_get $app mysqlpwd)
#install php dependencies if necessary
install_freshrss_dependencies
# Restore sources & data # Restore sources & data
final_path=/var/www/$app final_path=/var/www/$app
ynh_restore_file "$final_path" ynh_restore_file "$final_path"

View file

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