First commit
This commit is contained in:
4
data/zarya/scripts/install.spec.inc
Normal file
4
data/zarya/scripts/install.spec.inc
Normal file
@@ -0,0 +1,4 @@
|
||||
python setup.py install -O1 --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
||||
|
||||
sed -ri '\@^/etc/@ {\@/init.d/@! s@.+@%config(noreplace) \0@}' INSTALLED_FILES
|
||||
|
||||
16
data/zarya/scripts/postinstall.sh
Normal file
16
data/zarya/scripts/postinstall.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
CONF="/etc/sysconfig/enserver"
|
||||
if [ -f ${CONF} ]; then
|
||||
. ${CONF}
|
||||
fi
|
||||
|
||||
USER=${USER-"apsh"}
|
||||
GROUP=${GROUP-"apsh"}
|
||||
DBNAME=${DBNAME-"enserver"}
|
||||
STORAGE=${STORAGE-"/share/store/enserver"}
|
||||
LOGDIR=${LOGDIR-"/share/store"}
|
||||
|
||||
|
||||
mkdir -p ${STORAGE} ${LOGDIR}
|
||||
chown ${USER}:${GROUP} ${STORAGE} ${LOGDIR}
|
||||
Reference in New Issue
Block a user