Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/commands/install-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# HOTFIX: install.config can be called from make and must be path must be adjusted
SHRBINDIR=${SHRBINDIR:-"$(dirname $BASH_SOURCE)"}
SHRCONFDIR="${SHRBINDIR}/../config"
source $SHRBINDIR/utils.sh

#this command is the only declaro subcommand that can also be called from Makefile
Expand Down Expand Up @@ -31,7 +32,7 @@ function detect_and_install_config {
echo "Detected package manager setup: $NAME"

echo "Installing config file $CONFFILE..."
${SUDO} install -Dm644 "config/$CONFFILE" ${ETC_DECLARO_DIR}/config.sh
${SUDO} install -Dm644 "$SHRCONFDIR/$CONFFILE" ${ETC_DECLARO_DIR}/config.sh
return 0
fi
done
Expand Down