From 5b125be2baa68142a52223cbfe2cc0a083654c38 Mon Sep 17 00:00:00 2001 From: jamazi Date: Tue, 28 May 2024 11:34:19 +0300 Subject: [PATCH] Remove version file. --- config | 3 --- debian/changelog | 6 ++++++ debian/install | 1 - setup | 1 - unjailbox | 3 ++- version | 1 - 6 files changed, 8 insertions(+), 7 deletions(-) delete mode 100644 version diff --git a/config b/config index 87c72fb..5805cce 100644 --- a/config +++ b/config @@ -27,9 +27,6 @@ PostStart=/usr/bin/jailbox-post-start PreStop=/usr/bin/jailbox-pre-stop PostStop= -# version -source /etc/jailbox/version - # custom config if [ -f /etc/jailbox/config.d/*.conf ]; then source /etc/jailbox/config.d/*.conf diff --git a/debian/changelog b/debian/changelog index f41ae4f..92a03cb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +jailbox (0.5.0) experimental; urgency=low + + * Remove version file + + -- jamazi Tue, 28 May 2024 11:22:49 +0300 + jailbox (0.4.0) experimental; urgency=low * Initial debian package diff --git a/debian/install b/debian/install index b03e62d..f72ab8b 100644 --- a/debian/install +++ b/debian/install @@ -1,6 +1,5 @@ config etc/jailbox/ torrc etc/jailbox/ -version etc/jailbox/ jailbox-start usr/bin/ jailbox-stop usr/bin/ jailbox-post-start usr/bin/ diff --git a/setup b/setup index db8f0b2..2ca0ecf 100755 --- a/setup +++ b/setup @@ -6,7 +6,6 @@ if [ $UID -ne 0 ]; then fi install -Dm644 config /etc/jailbox/config -install -Dm644 version /etc/jailbox/version install -Dm644 torrc /etc/jailbox/torrc install -Dm755 jailbox-start /usr/bin/jailbox-start install -Dm755 jailbox-stop /usr/bin/jailbox-stop diff --git a/unjailbox b/unjailbox index f3ecc15..e03484e 100755 --- a/unjailbox +++ b/unjailbox @@ -1,6 +1,7 @@ #!/bin/bash source /etc/jailbox/config +readonly version="0.5.0" USAGE="Run command without tor.\nUsage: $(basename $0) [-hv] [-u user] [-c command]" USER="$(/usr/bin/logname)" @@ -12,7 +13,7 @@ while getopts "hvu:c:" opt; do exit 0 ;; v ) - echo "Jailbox version ${version}" + echo "Jailbox version v${version}" exit 0 ;; u ) diff --git a/version b/version deleted file mode 100644 index 8f1ff1f..0000000 --- a/version +++ /dev/null @@ -1 +0,0 @@ -version="v0.4.0"