blob: a0baaf51dfb57b41b99fb5a9e312b6ec3fedc9cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#! /bin/sh
EGDIR="@EGDIR@"
SYSBUILD_HOME="@SYSBUILD_HOME@"
SYSBUILD_USER="@SYSBUILD_USER@"
case "${STAGE}" in
POST-INSTALL)
if [ ! -e "${SYSBUILD_HOME}/.sysbuild/default.conf" ]; then
echo "${PKGNAME}: Installing default configuration file"
${MKDIR} -p "${SYSBUILD_HOME}/.sysbuild"
( cd "${SYSBUILD_HOME}/.sysbuild" && ln -s ../default.conf . )
fi
if crontab -u "${SYSBUILD_USER}" -l >/dev/null 2>/dev/null; then
echo "${PKGNAME}: ${SYSBUILD_USER} already has a crontab;" \
"not installing"
else
echo "${PKGNAME}: Installing default crontab for ${SYSBUILD_USER}"
crontab -u "${SYSBUILD_USER}" "${EGDIR}/crontab"
fi
;;
esac
|