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:
53
SNAP/usher
53
SNAP/usher
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user