aboutsummaryrefslogtreecommitdiff
path: root/content/en/blog/miscellaneous/etc-update-alpine.md
diff options
context:
space:
mode:
authorJulien Dessaux2021-03-11 18:53:14 +0100
committerJulien Dessaux2021-03-11 18:53:14 +0100
commit60d3abc6ecdc21b4ab921d34a55b4af48690f55a (patch)
tree1ee530dd7367d743fb619f341100e41df22e1985 /content/en/blog/miscellaneous/etc-update-alpine.md
parentUpdated docsy theme (diff)
downloadwww-60d3abc6ecdc21b4ab921d34a55b4af48690f55a.tar.gz
www-60d3abc6ecdc21b4ab921d34a55b4af48690f55a.tar.bz2
www-60d3abc6ecdc21b4ab921d34a55b4af48690f55a.zip
Rewrote the whole website to get rid on a heavy theme
Diffstat (limited to 'content/en/blog/miscellaneous/etc-update-alpine.md')
-rw-r--r--content/en/blog/miscellaneous/etc-update-alpine.md38
1 files changed, 0 insertions, 38 deletions
diff --git a/content/en/blog/miscellaneous/etc-update-alpine.md b/content/en/blog/miscellaneous/etc-update-alpine.md
deleted file mode 100644
index dbc0824..0000000
--- a/content/en/blog/miscellaneous/etc-update-alpine.md
+++ /dev/null
@@ -1,38 +0,0 @@
----
-title: "etc-update script for alpine linux"
-linkTitle: "etc-update script for alpine linux"
-date: 2019-04-02
-description: >
- etc-update script for alpine linux
----
-
-Alpine linux doesn't seem to have a tool to merge pending configuration changes, so I wrote one :
-{{< highlight sh >}}
-#!/bin/sh
-set -eu
-
-for new_file in $(find /etc -iname '*.apk-new'); do
- current_file=${new_file%.apk-new}
- echo "===== New config file version for $current_file ====="
- diff ${current_file} ${new_file} || true
- while true; do
- echo "===== (r)eplace file with update? (d)iscard update? (m)erge files? (i)gnore ====="
- PS2="k/d/m/i? "
- read choice
- case ${choice} in
- r)
- mv ${new_file} ${current_file}
- break;;
- d)
- rm -f ${new_file}
- break;;
- m)
- vimdiff ${new_file} ${current_file}
- break;;
- i)
- break;;
- esac
- done
-done
-{{< /highlight >}}
-