add quacamole sqlpage

This commit is contained in:
Thomas Legay 2023-11-21 01:24:31 +01:00
parent 337df6c751
commit a31db48ad0
43 changed files with 421 additions and 14 deletions

View 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

View 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