summaryrefslogtreecommitdiff
path: root/install.sh
diff options
context:
space:
mode:
authorUeda Naoaki <nao@uedder.com>2023-02-05 16:33:44 +0900
committerUeda Naoaki <nao@uedder.com>2023-02-05 16:33:44 +0900
commit3143903b0dd01517b2fc6d192d5e8cd6de2d4a6c (patch)
tree136cc4fd76dd21ccd69ee25382bd3e623e80e179 /install.sh
parent14fe58ac4c4e7b5b36d5f4d2fd880fee8f4a485c (diff)
downloadasustor-nas-tailscale-installer-3143903b0dd01517b2fc6d192d5e8cd6de2d4a6c.tar.gz
asustor-nas-tailscale-installer-3143903b0dd01517b2fc6d192d5e8cd6de2d4a6c.tar.bz2
asustor-nas-tailscale-installer-3143903b0dd01517b2fc6d192d5e8cd6de2d4a6c.zip
Fix some errors
Diffstat (limited to 'install.sh')
-rwxr-xr-xinstall.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/install.sh b/install.sh
index ed1d309..2fd2138 100755
--- a/install.sh
+++ b/install.sh
@@ -34,9 +34,9 @@ __backup_if_exist() {
}
__backup_if_exist $backup_dir /usr/local/bin/tailscale /usr/local/sbin/tailscaled /usr/local/etc/init.d/$init_file
-sudo cp $base_dir/tailscale /usr/local/bin/tailscale
-sudo cp $base_dir/tailscaled /usr/local/sbin/tailscaled
-sudo cp $base_dir/$init_file /usr/local/etc/init.d/$init_file
+sudo cp -f $base_dir/tailscale /usr/local/bin/tailscale
+sudo cp -f $base_dir/tailscaled /usr/local/sbin/tailscaled
+sudo cp -f $base_dir/$init_file /usr/local/etc/init.d/$init_file
sudo chmod +x /usr/local/bin/tailscale
sudo chmod +x /usr/local/sbin/tailscaled
sudo chmod +x /usr/local/etc/init.d/$init_file