Skip to content

Commit

Permalink
Merge pull request #2142 from phillxnet/2006_openSUSE_shellinabox
Browse files Browse the repository at this point in the history
[openSUSE] adapt to shellinabox package differences. Fixes #2006
  • Loading branch information
phillxnet committed Mar 10, 2020
2 parents f3f6cd8 + d2bea5e commit 6b97560
Show file tree
Hide file tree
Showing 7 changed files with 426 additions and 315 deletions.
6 changes: 0 additions & 6 deletions buildout.cfg
Expand Up @@ -24,7 +24,6 @@ parts =
# postgres-conf
gunicorn
nginx-conf
shellinabox-conf
stop-shellinabox
django-settings-conf
test-settings-conf
Expand Down Expand Up @@ -60,11 +59,6 @@ recipe = collective.recipe.template
input = ${buildout:directory}/conf/nginx.conf.in
output = ${buildout:directory}/etc/nginx/nginx.conf

[shellinabox-conf]
recipe = collective.recipe.template
input = ${buildout:directory}/conf/shellinaboxd.in
output = /etc/sysconfig/shellinaboxd

[stop-shellinabox]
recipe = plone.recipe.command
command = systemctl stop shellinaboxd
Expand Down
20 changes: 14 additions & 6 deletions conf/settings.conf.in
Expand Up @@ -385,12 +385,20 @@ NUT_LISTEN_ON_IP = '0.0.0.0'
NUT_SYSTEM_SHUTDOWNCMD = '/sbin/shutdown -h +0'

# Shell In A Box base settings
SHELLINABOX = {
'user': 'root',
'group': 'root',
'port': '4200',
'certs': '/var/lib/shellinabox'
}
if distro.id() == 'rockstor':
SHELLINABOX = {
'user': 'shellinabox',
'group': 'shellinabox',
'port': '4200',
'certs': '/var/lib/shellinabox'
}
else:
SHELLINABOX = {
'user': 'shellinabox',
'group': 'shellinabox',
'port': '4200',
'certs': '/etc/shellinabox/certs'
}

UPDATE_CHANNELS = {
'stable': {
Expand Down
7 changes: 0 additions & 7 deletions conf/shellinaboxd.in

This file was deleted.

0 comments on commit 6b97560

Please sign in to comment.