Files
snap-base/SNAP/usher
Jay Larson aeb36acc25 The following changes were made:
* moved files out of unnecessasry directories
  * snap_version is now managed by this package
  * added /etc/mtab
  * added /var/log/{btmp,lastlog,wtmp}
2017-05-17 09:17:39 -05:00

47 lines
1.2 KiB
Bash
Executable File

#!/bin/bash
set -e
case $1 in
preinst)
exit 0
;;
postinst)
if [ ! -f ${TARGET}/etc/bashrc ]; then
install -m 0644 ${TARGET}/usr/share/snap-base/bashrc \
${TARGET}/etc/bashrc
fi
if [ ! -f ${TARGET}/etc/group ]; then
install -m 0644 ${TARGET}/usr/share/snap-base/group \
${TARGET}/etc/group
fi
if [ ! -f ${TARGET}/etc/passwd ]; then
install -m 0644 ${TARGET}/usr/share/snap-base/passwd \
${TARGET}/etc/passwd
fi
if [ ! -f ${TARGET}/etc/profile ]; then
install -m 0644 ${TARGET}/usr/share/snap-base/profile \
${TARGET}/etc/profile
fi
if [ ! -f ${TARGET}/etc/snap.conf ]; then
install -m 0644 ${TARGET}/usr/share/snap-base/snap.conf \
${TARGET}/etc/snap.conf
fi
if [ ! -f ${TARGET}/var/log/btmp ]; then
install -v -m 600 /dev/null $(DESTDIR)/var/log/btmp
fi
if [ ! -f ${TARGET}/var/log/lastlog ]; then
install -v -m 664 /dev/null $(DESTDIR)/var/log/lastlog
fi
if [ ! -f ${TARGET}/var/log/wtmp ]; then
install -v -m 664 /dev/null $(DESTDIR)/var/log/wtmp
fi
;;
prerm)
exit 0
;;
postrm)
exit 0
;;
esac