First commit

This commit is contained in:
Ivan Vazhenin
2023-03-12 16:40:33 +03:00
commit 54fa589261
44 changed files with 3339 additions and 0 deletions

View 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

View 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}