mirror of
https://github.com/YunoHost-Apps/beehive_ynh.git
synced 2024-09-03 18:06:24 +02:00
Fix
This commit is contained in:
parent
2954f38288
commit
2ad1d2e2e5
7 changed files with 41 additions and 19 deletions
21
conf/beehive.conf
Normal file
21
conf/beehive.conf
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
"Bees":[
|
||||||
|
{
|
||||||
|
"Name":"ircbee_freenode",
|
||||||
|
"Class":"ircbee",
|
||||||
|
"Description":"ircbee connected to freenode, channel #beehive",
|
||||||
|
"Options":[
|
||||||
|
{
|
||||||
|
"Name":"server",
|
||||||
|
"Value":"irc.freenode.net"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"nick",
|
||||||
|
"Value":"beehive"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"channels",
|
||||||
|
"Value":["#beehive"]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
|
@ -7,7 +7,8 @@ Type=simple
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__FINALPATH__/
|
WorkingDirectory=__FINALPATH__/
|
||||||
ExecStart=__FINALPATH__/beehive -bind "127.0.0.1:__PORT__" -canonicalurl "https://__DOMAIN__"
|
ExecStart=__FINALPATH__/beehive --config __FINALPATH__/beehive.conf
|
||||||
|
#-bind "127.0.0.1:__PORT__" -canonicalurl "https://__DOMAIN__"
|
||||||
Restart=always
|
Restart=always
|
||||||
StandardOutput=/var/log/__APP__/__APP__.log
|
StandardOutput=/var/log/__APP__/__APP__.log
|
||||||
StandardError=/var/log/__APP__/__APP__.log
|
StandardError=/var/log/__APP__/__APP__.log
|
||||||
|
|
|
@ -36,7 +36,7 @@ app=$YNH_APP_INSTANCE_NAME
|
||||||
#=================================================
|
#=================================================
|
||||||
ynh_script_progression --message="Validating installation parameters..." --weight=1
|
ynh_script_progression --message="Validating installation parameters..." --weight=1
|
||||||
|
|
||||||
final_path=/opt/yunohost/$app
|
final_path=/var/www/$app
|
||||||
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
test ! -e "$final_path" || ynh_die --message="This path already contains a folder"
|
||||||
|
|
||||||
# Register (book) web path
|
# Register (book) web path
|
||||||
|
|
|
@ -65,7 +65,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
|
||||||
|
|
||||||
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
if [ "$upgrade_type" == "UPGRADE_APP" ]
|
||||||
then
|
then
|
||||||
ynh_script_progression --message="Upgrading source files..." --time --weight=1
|
ynh_script_progression --message="Upgrading source files..." --weight=1
|
||||||
|
|
||||||
# Download, check integrity, uncompress and patch the source from app.src
|
# Download, check integrity, uncompress and patch the source from app.src
|
||||||
ynh_setup_source --dest_dir="$final_path"
|
ynh_setup_source --dest_dir="$final_path"
|
||||||
|
|
Loading…
Reference in a new issue