summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-10-09 12:46:03 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-10-09 12:46:03 +0200
commit7c9e2a002cba62e18817c5029aa6df77c4dc6c70 (patch)
tree97c2f8a98bfc5ed61996b0b6a9ba282c4f28653e
parent0a8c918bf1d3b3401aec8afb0efe6589b003bb07 (diff)
downloadapp.sh-7c9e2a002cba62e18817c5029aa6df77c4dc6c70.tar.gz
app.sh-7c9e2a002cba62e18817c5029aa6df77c4dc6c70.tar.bz2
app.sh-7c9e2a002cba62e18817c5029aa6df77c4dc6c70.tar.xz
app.sh-7c9e2a002cba62e18817c5029aa6df77c4dc6c70.zip
o latest => current.
-rw-r--r--.app/lib/app-conf8
1 files changed, 4 insertions, 4 deletions
diff --git a/.app/lib/app-conf b/.app/lib/app-conf
index 0761205..141524d 100644
--- a/.app/lib/app-conf
+++ b/.app/lib/app-conf
@@ -5,7 +5,7 @@ key_expr="[a-zA-Z][_a-zA-Z0-9]*\.[a-zA-Z][_a-zA-Z0-9]*"
get_conf() {
local key=$1
local default=$2
- local file=$BASEDIR/$name/$instance/latest/etc/app.conf
+ local file=$BASEDIR/$name/$instance/current/etc/app.conf
if [ ! -r $file ]
then
@@ -24,7 +24,7 @@ get_conf() {
}
get_conf_all() {
- local file=$BASEDIR/$name/$instance/latest/etc/app.conf
+ local file=$BASEDIR/$name/$instance/current/etc/app.conf
if [ ! -r $file ]
then
@@ -54,7 +54,7 @@ assert_key() {
conf_set() {
local key=$1
local value=$2
- local file=$BASEDIR/$name/$instance/latest/etc/app.conf
+ local file=$BASEDIR/$name/$instance/current/etc/app.conf
assert_key "$key"
@@ -70,7 +70,7 @@ conf_set() {
conf_delete() {
key=$1
- local file=$BASEDIR/$name/$instance/latest/etc/app.conf
+ local file=$BASEDIR/$name/$instance/current/etc/app.conf
assert_key "$key"