diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-03-04 22:10:29 +1300 |
---|---|---|
committer | Andrew Clemons <andrew.clemons@gmail.com> | 2022-03-05 00:18:23 +1300 |
commit | 3bf04612c0762f18fff12865e5c57280439f0cce (patch) | |
tree | 643cb3ec806ecdc75d27c5f23993e70d4fd145d4 /system/lxd/doinst.sh | |
parent | 82907dc60d1b7e53fe6395555b2a60e950ef09b4 (diff) |
system/lxd: Removed (ftb, no maintainer).
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
Diffstat (limited to 'system/lxd/doinst.sh')
-rw-r--r-- | system/lxd/doinst.sh | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/system/lxd/doinst.sh b/system/lxd/doinst.sh deleted file mode 100644 index 0b95a44d98ab3..0000000000000 --- a/system/lxd/doinst.sh +++ /dev/null @@ -1,29 +0,0 @@ -config() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - # If there's no config file by that name, mv it over: - if [ ! -r $OLD ]; then - mv $NEW $OLD - elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then - # toss the redundant copy - rm $NEW - fi - # Otherwise, we leave the .new copy for the admin to consider... -} - -preserve_perms() { - NEW="$1" - OLD="$(dirname $NEW)/$(basename $NEW .new)" - if [ -e $OLD ]; then - cp -a $OLD ${NEW}.incoming - cat $NEW > ${NEW}.incoming - mv ${NEW}.incoming $NEW - fi - config $NEW -} - -preserve_perms etc/profile.d/lxd.sh.new -preserve_perms etc/profile.d/lxd.csh.new - -config opt/lxd/service/run.new -config opt/lxd/service/log/run.new |