add quacamole sqlpage
This commit is contained in:
parent
337df6c751
commit
a31db48ad0
43 changed files with 421 additions and 14 deletions
0
ressources/guacamole-server/DEBIAN/changelog
Normal file
0
ressources/guacamole-server/DEBIAN/changelog
Normal file
8
ressources/guacamole-server/DEBIAN/control
Normal file
8
ressources/guacamole-server/DEBIAN/control
Normal file
|
@ -0,0 +1,8 @@
|
|||
Package: guacamole-server
|
||||
Version: %VERSION%
|
||||
Section: contrib
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Depends: libwebp6, libcairo2
|
||||
Maintainer: Thomas Legay <thomas@lgy.fr>
|
||||
Description: guacamole-server
|
37
ressources/guacamole-server/DEBIAN/postinst
Executable file
37
ressources/guacamole-server/DEBIAN/postinst
Executable file
|
@ -0,0 +1,37 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Simple postinst script for guacd which creates a "guacd" user and group
|
||||
# and sets the permissions and ownership of /var/run/guacd (the location
|
||||
# of the guacd.pid file).
|
||||
#
|
||||
|
||||
|
||||
# Exit on errors
|
||||
set -e
|
||||
|
||||
GUACD_USER="guacd" # guacd username
|
||||
GUACD_GROUP="guacd" # guacd group
|
||||
GUACD_HOME="/var/run/guacd" # guacd home directory
|
||||
|
||||
# Convenience function for error conditions.
|
||||
fail() {
|
||||
echo "$1" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Create guacd group if it does not exist
|
||||
groupadd -fr "$GUACD_GROUP" ||\
|
||||
fail "Could not create group \"$GUACD_GROUP\""
|
||||
|
||||
# Create guacd user if it does not exist
|
||||
useradd -g "$GUACD_GROUP" -d "$GUACD_HOME" -s /bin/false -r "$GUACD_USER" || (
|
||||
if [ "$?" != "9" ]
|
||||
then
|
||||
fail "Could not create user \"$GUACD_USER\""
|
||||
fi
|
||||
)
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
# Exit successfully
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue