diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-10 00:35:24 +0200 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-10-10 00:35:24 +0200 |
commit | 40bb173efe98507b0139a35040b9c8e826ad538c (patch) | |
tree | 20906d2b5be1bb1dea7776d329ff811dba5c4a63 | |
parent | dc93eee654d98bbcfcf3458eec066de27ec685d1 (diff) | |
download | vyatta-cfg-40bb173efe98507b0139a35040b9c8e826ad538c.tar.gz vyatta-cfg-40bb173efe98507b0139a35040b9c8e826ad538c.zip |
Revert my bad idea
This was dumb "Fix permissions of config file during upgrade"
This reverts commit dc93eee654d98bbcfcf3458eec066de27ec685d1.
-rw-r--r-- | debian/vyatta-cfg.postinst.in | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/debian/vyatta-cfg.postinst.in b/debian/vyatta-cfg.postinst.in index 96d66be..d934b84 100644 --- a/debian/vyatta-cfg.postinst.in +++ b/debian/vyatta-cfg.postinst.in @@ -3,19 +3,9 @@ prefix=@prefix@ sysconfdir=@sysconfdir@ -# add group for configuration, if not already present: -grep '^vyattacfg:' /etc/group >&/dev/null || -addgroup --system vyattacfg - mkdir -m 0775 -p $sysconfdir/config $prefix/config chgrp vyattacfg $sysconfdir/config $prefix/config 2>/dev/null -# fix permissions of config file during upgrade -if [ ! -d $sysconfdir/config/config.boot ]; then - chgrp vyattacfg - chmod 0664 $sysconfdir/config/config.boot -fi - update-rc.d vyatta-ofr defaults 90 >/dev/null # do we want to start vyatta-ofr here in postinst? @@ -28,3 +18,6 @@ if [ "$sysconfdir" != "/etc" ]; then done fi +# add group for configuration, if not already present: +grep '^vyattacfg:' /etc/group >&/dev/null || +addgroup --system vyattacfg |