Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / sysutils / sysbuild-user / INSTALL
bloba0baaf51dfb57b41b99fb5a9e312b6ec3fedc9cf
1 #! /bin/sh
3 EGDIR="@EGDIR@"
4 SYSBUILD_HOME="@SYSBUILD_HOME@"
5 SYSBUILD_USER="@SYSBUILD_USER@"
7 case "${STAGE}" in
8 POST-INSTALL)
9 if [ ! -e "${SYSBUILD_HOME}/.sysbuild/default.conf" ]; then
10 echo "${PKGNAME}: Installing default configuration file"
11 ${MKDIR} -p "${SYSBUILD_HOME}/.sysbuild"
12 ( cd "${SYSBUILD_HOME}/.sysbuild" && ln -s ../default.conf . )
15 if crontab -u "${SYSBUILD_USER}" -l >/dev/null 2>/dev/null; then
16 echo "${PKGNAME}: ${SYSBUILD_USER} already has a crontab;" \
17 "not installing"
18 else
19 echo "${PKGNAME}: Installing default crontab for ${SYSBUILD_USER}"
20 crontab -u "${SYSBUILD_USER}" "${EGDIR}/crontab"
23 esac