diff options
author | xyz <gky44px1999@gmail.com> | 2021-10-17 01:23:03 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-10-17 01:23:03 -0700 |
commit | ce174ca540c624ed4fafb5a84f2fb6f55007c2c2 (patch) | |
tree | 67c570a401fd599b4045086ef9ce40b23a8fbd11 | |
parent | 58541c5ee213de8ea61d488e8d095fbb3d1c44bd (diff) |
refactor
-rwxr-xr-x | .local/bin/cpcfg | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/.local/bin/cpcfg b/.local/bin/cpcfg deleted file mode 100755 index e1190396..00000000 --- a/.local/bin/cpcfg +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -# some dotfiles file permissions are different than normal root:root file, need chown -# If overwirte, cp by defualt uses `--no-preserve=all` which preserve target file mode, ownership, and timestamps. -# https://serverfault.com/questions/273949/cp-without-overwriting-destination-permissions/1048378#1048378 -# However, if no overwrite, we need chown if the target file mode we want is different from normal root:root 644 file. - -sudo cp -i -- "$XDG_CONFIG_HOME/myconf/pacman.conf" /etc/ - -sudo cp -i -- "$XDG_CONFIG_HOME/myconf/locale.gen" /etc/ - -sudo mkdir -p /etc/wildmidi/ -sudo cp -i -- "$XDG_CONFIG_HOME/myconf/wildmidi.cfg" /etc/wildmidi/ - -sudo mkdir -p /etc/mullvad-vpn/ -# need to stop mullvad-daemon then copy, else command like `mullvad relay set location xx xxx` will change it back to before copy. not sure why, maybe because of systemd -sudo systemctl stop mullvad-daemon -sudo cp -i -- "$XDG_CONFIG_HOME/myconf/settings.json" /etc/mullvad-vpn/ -sudo systemctl start mullvad-daemon |