summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2006-03-04 01:22:36 +0000
committer Eric Hameleers <alien@slackware.com>2006-03-04 01:22:36 +0000
commit05fc372d574de6b7c3792769819176b9d5e71696 (patch)
tree3c98b7f611cabe78d44c2073d767944415b01f56
parent6dbfe3eeeb6424a07292665a145d7900e309abe8 (diff)
downloadasb-05fc372d574de6b7c3792769819176b9d5e71696.tar.gz
asb-05fc372d574de6b7c3792769819176b9d5e71696.tar.xz
Fixed several smaal things.
-rw-r--r--partimage/build/doinst.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/partimage/build/doinst.sh b/partimage/build/doinst.sh
index 48cfeb3c..088e162b 100644
--- a/partimage/build/doinst.sh
+++ b/partimage/build/doinst.sh
@@ -17,6 +17,7 @@ config() {
partuid=77
partuser=partimag
partconfdir="etc/partimaged"
+partdatadir="var/spool/partimaged"
opensslpath="/usr/bin/openssl"
# Create the partimage account
@@ -42,10 +43,20 @@ chown ${partuser}:root ${partconfdir}
chown ${partuser}:root ${partconfdir}/partimagedusers
chmod 600 ${partconfdir}/partimagedusers
+# The partimag user must own the dataspool directory
+chown ${partuser}:root ${partdatadir}
+chmod 600 ${partdatadir}
+
# Create certificate for SSL connections
if test -x ${opensslpath} ; then
if test ! -f ${partconfdir}/partimaged.cert ; then
+ echo "===================================================="
echo "generating certificate for partimage/partimaged ssl:"
+ echo "===================================================="
+ echo "You will be asked for a passphrase twice. The passphrases must match"
+ echo "and will be used to create the key certificate for partimaged."
+ echo "Write this passphrase down or memorize it!"
+ echo ""
mkdir -p ${partconfdir} >/dev/null
touch ${partconfdir}/privkey.pem
rm -f ${partconfdir}/privkey.pem