You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
415 B
Bash
20 lines
415 B
Bash
#!/bin/sh -e
|
|
|
|
SKY_DIR=/var/lib/skytable
|
|
|
|
# create the data directory
|
|
if [ ! -e $SKY_DIR ]; then
|
|
mkdir $SKY_DIR
|
|
elif [ ! -d $SKY_DIR ]; then
|
|
echo "ERROR: /var/lib/skytable exists but it is not a directory" 1>&2
|
|
return 1
|
|
fi
|
|
|
|
if [ $1 = "install" ]; then
|
|
# add the `skytable` user
|
|
adduser --system --group skytable
|
|
# change ownership
|
|
chown skytable:skytable /var/lib/skytable
|
|
fi
|
|
|
|
#DEBHELPER# |