summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-08-25 04:43:07 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2014-08-25 04:43:07 -0300
commit82c9bb005723b14973b5b41fe788aeb3df1692ba (patch)
tree86f06a8f7acef5edbe18f014e35a85971146dd67
parent2d8fa2297c79aa9e49134989bcb752357424fd4b (diff)
downloadabslibre-82c9bb005723b14973b5b41fe788aeb3df1692ba.tar.gz
abslibre-82c9bb005723b14973b5b41fe788aeb3df1692ba.tar.bz2
abslibre-82c9bb005723b14973b5b41fe788aeb3df1692ba.zip
filesystem-parabola: fix on replace filesystem
-rw-r--r--libre/filesystem-parabola/PKGBUILD2
-rw-r--r--libre/filesystem-parabola/filesystem.install11
2 files changed, 12 insertions, 1 deletions
diff --git a/libre/filesystem-parabola/PKGBUILD b/libre/filesystem-parabola/PKGBUILD
index b4dba77c0..0bc0fac54 100644
--- a/libre/filesystem-parabola/PKGBUILD
+++ b/libre/filesystem-parabola/PKGBUILD
@@ -6,7 +6,7 @@
_pkgname=filesystem
pkgname=filesystem-parabola
pkgver=2014.07
-pkgrel=1
+pkgrel=1.1
pkgdesc='Base filesystem (Parabola rebranded)'
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
diff --git a/libre/filesystem-parabola/filesystem.install b/libre/filesystem-parabola/filesystem.install
index 065a79d6c..d70906f47 100644
--- a/libre/filesystem-parabola/filesystem.install
+++ b/libre/filesystem-parabola/filesystem.install
@@ -12,6 +12,17 @@ _adduser() {
fi
}
+post_install() {
+ _backup=('etc/fstab' 'etc/crypttab' 'etc/group' 'etc/hosts' 'etc/ld.so.conf' 'etc/passwd'
+ 'etc/shadow' 'etc/gshadow' 'etc/resolv.conf' 'etc/motd' 'etc/nsswitch.conf'
+ 'etc/shells' 'etc/host.conf' 'etc/securetty' 'etc/profile' 'etc/issue')
+ for _bk in ${_backup[@]}; do
+ if [ -f ${_bk}.pacsave ]; then
+ cp -av ${_bk}{.pacsave,}
+ fi
+ done
+}
+
post_upgrade() {
_addgroup optical -g 93
_addgroup audio -g 92