Fixes for webgui and more native gui development
This commit is contained in:
Vendored
+10
@@ -52,6 +52,16 @@ else
|
||||
mariadb -e "GRANT SELECT, INSERT, UPDATE, DELETE ON \`${DB_NAME}\`.* TO '${DB_USER}'@'localhost'"
|
||||
fi
|
||||
|
||||
echo "Initializing document storage..."
|
||||
if ! getent group yms >/dev/null; then
|
||||
addgroup --system yms
|
||||
fi
|
||||
if ! id -nG www-data | tr ' ' '\n' | grep -qx yms; then
|
||||
adduser www-data yms
|
||||
fi
|
||||
mkdir -p /var/lib/yms/thumb
|
||||
chown -R www-data:yms /var/lib/yms
|
||||
|
||||
db_get yms/webgui
|
||||
if [ "$RET" = "true" ]; then
|
||||
|
||||
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
. /usr/share/debconf/confmodule
|
||||
|
||||
case "$1" in
|
||||
remove|purge)
|
||||
db_input high yms/remove-info || true
|
||||
db_go || true
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
Vendored
+9
@@ -23,3 +23,12 @@ Description: Enable the YMS web interface?
|
||||
by a web server.
|
||||
.
|
||||
Do you want to enable the web interface?
|
||||
|
||||
Template: yms/remove-info
|
||||
Type: note
|
||||
Description: YMS document storage was not removed
|
||||
The YMS package has been removed, but the document storage
|
||||
remains on the system.
|
||||
.
|
||||
The directory /var/lib/yms and its contents have not been
|
||||
deleted.
|
||||
|
||||
Reference in New Issue
Block a user