mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
still working on multi-instance
This commit is contained in:
parent
64a4c1b8e6
commit
3d45d9b138
2 changed files with 4 additions and 4 deletions
|
@ -13,8 +13,6 @@ FRESHRSS_SOURCE_URL="https://github.com/FreshRSS/FreshRSS/archive/1.6.2.tar.gz"
|
|||
|
||||
PKGDIR=$(cd ../; pwd)
|
||||
|
||||
FINAL_PATH="/var/www/freshrss"
|
||||
|
||||
#apt dependencies
|
||||
DEPS_PKG_NAME="freshrss-deps"
|
||||
|
||||
|
|
|
@ -15,6 +15,8 @@ app=$YNH_APP_INSTANCE_NAME
|
|||
db_user=$app
|
||||
db_name=$app
|
||||
|
||||
FINAL_PATH="/var/www/$app"
|
||||
|
||||
# Source app helpers
|
||||
. /usr/share/yunohost/helpers
|
||||
|
||||
|
@ -26,7 +28,7 @@ if [[ $admin_user != '' ]]; then
|
|||
fi
|
||||
|
||||
# Check domain/path availability
|
||||
sudo yunohost app checkurl $domain$path -a freshrss || ynh_die "The path ${domain}${path} is not available for app installation."
|
||||
sudo yunohost app checkurl $domain$path -a $app || ynh_die "The path ${domain}${path} is not available for app installation."
|
||||
|
||||
#install php5-cli
|
||||
ynh_package_install_from_equivs ../conf/${DEPS_PKG_NAME}.control \
|
||||
|
@ -58,7 +60,7 @@ sudo mv $TMPDIR $FINAL_PATH
|
|||
# Modify Nginx configuration file and copy it to Nginx conf directory
|
||||
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
||||
sed -i "s@ALIASTOCHANGE@$FINAL_PATH/@g" ../conf/nginx.conf
|
||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/freshrss.conf
|
||||
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||
|
||||
#install update cron
|
||||
# Add cron job
|
||||
|
|
Loading…
Add table
Reference in a new issue