From b89f5fc95c36c42edb237412071d1a08829b824c Mon Sep 17 00:00:00 2001 From: lemniskett Date: Thu, 29 Oct 2020 22:04:39 +0700 Subject: [PATCH] Do not overwrite existing config file --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 58d627e..952287d 100755 --- a/install.sh +++ b/install.sh @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash mkdir -p /usr/local/share/archbox/bin cp -v ./archbox.bash /usr/local/bin/archbox -cp -v ./archbox.conf /etc/archbox.conf +[[ ! -e /etc/archbox.conf ]] && cp -v ./archbox.conf /etc/archbox.conf cp -v ./copyresolv.bash /usr/local/share/archbox/bin/copyresolv cp -v ./archboxcommand.bash /usr/local/share/archbox/bin/archbox cp -v ./chroot_setup.bash /usr/local/share/archbox/chroot_setup.bash