mirror of
https://github.com/YunoHost-Apps/freshrss_ynh.git
synced 2024-09-03 18:36:33 +02:00
Fix/user add (#43)
* remplace app instance name into hooks * update forgotten version number
This commit is contained in:
parent
b5e4bea5de
commit
d2730ede88
6 changed files with 10 additions and 6 deletions
|
@ -4,7 +4,7 @@ Homepage: https://github.com/FreshRSS/FreshRSS
|
||||||
Standards-Version: 3.9.2
|
Standards-Version: 3.9.2
|
||||||
|
|
||||||
Package: freshrss-deps
|
Package: freshrss-deps
|
||||||
Version: 1.8.0
|
Version: 1.10.1
|
||||||
Depends: php5-cli, php5-gmp
|
Depends: php5-cli, php5-gmp
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Description: meta package for freshrss dependencies
|
Description: meta package for freshrss dependencies
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
app=APPNAMETOCHANGE
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
|
||||||
new_users=$2
|
new_users=$2
|
||||||
app_path=/var/www/$app
|
app_path=/var/www/$app
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=APPNAMETOCHANGE
|
||||||
app_path=/var/www/$app
|
app_path=/var/www/$app
|
||||||
|
|
||||||
myuser=$1
|
myuser=$1
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
app=$YNH_APP_INSTANCE_NAME
|
app=APPNAMETOCHANGE
|
||||||
app_path=/var/www/$app
|
app_path=/var/www/$app
|
||||||
|
|
||||||
myuser=$1
|
myuser=$1
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#
|
#
|
||||||
APPNAME="freshrss"
|
APPNAME="freshrss"
|
||||||
# FreshRSS version
|
# FreshRSS version
|
||||||
VERSION="1.10.0"
|
VERSION="1.10.1"
|
||||||
|
|
||||||
# FreshRSS complete tarball checksum
|
# FreshRSS complete tarball checksum
|
||||||
FRESHRSS_SOURCE_SHA256="76737974c9ea670aef5a089a3716d40a83e8896571aaac906b615c28d420af83"
|
FRESHRSS_SOURCE_SHA256="76737974c9ea670aef5a089a3716d40a83e8896571aaac906b615c28d420af83"
|
||||||
|
|
|
@ -72,6 +72,11 @@ sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
|
||||||
sed -i "s@ALIASTOCHANGE@$FINAL_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/$app.conf
|
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/$app.conf
|
||||||
|
|
||||||
|
#update hook for multi instance
|
||||||
|
sed -i "s@APPNAMETOCHANGE@$app@g" ../hooks/post_app_addaccess
|
||||||
|
sed -i "s@APPNAMETOCHANGE@$app@g" ../hooks/post_user_create
|
||||||
|
sed -i "s@APPNAMETOCHANGE@$app@g" ../hooks/post_user_delete
|
||||||
|
|
||||||
#install update cron
|
#install update cron
|
||||||
# Add cron job
|
# Add cron job
|
||||||
cron_path="/etc/cron.d/$app"
|
cron_path="/etc/cron.d/$app"
|
||||||
|
|
Loading…
Add table
Reference in a new issue