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}
This commit is contained in:
2017-05-17 09:17:39 -05:00
parent 186426b518
commit aeb36acc25
10 changed files with 49 additions and 37 deletions

View File

@@ -7,31 +7,34 @@ case $1 in
exit 0
;;
postinst)
if [[ ${TARGET} ]]; then
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}/etc/snap_version ]; then
install -m 0644 ${TARGET}/usr/share/snap-base/snap_version \
${TARGET}/etc/snap_version
fi
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)