mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-26 18:43:39 +02:00
Symlink code update
This commit is contained in:
@@ -75,6 +75,7 @@ fi
|
|||||||
|
|
||||||
# download latest version
|
# download latest version
|
||||||
|
|
||||||
|
rn
|
||||||
if [ $VERBOSE = true ]; then
|
if [ $VERBOSE = true ]; then
|
||||||
curl -J -L -o /tmp/joal.tar.gz $(curl -s https://api.github.com/repos/anthonyraymond/joal/releases/latest | grep -o "http.*joal.tar.gz")
|
curl -J -L -o /tmp/joal.tar.gz $(curl -s https://api.github.com/repos/anthonyraymond/joal/releases/latest | grep -o "http.*joal.tar.gz")
|
||||||
#wget -O /tmp/joal.tar.gz "https://github.com/anthonyraymond/joal/releases/download/$UPSTREAM/joal.tar.gz"
|
#wget -O /tmp/joal.tar.gz "https://github.com/anthonyraymond/joal/releases/download/$UPSTREAM/joal.tar.gz"
|
||||||
@@ -92,14 +93,16 @@ bashio::log.info "Joal updated"
|
|||||||
# SYMLINK CONFIG #
|
# SYMLINK CONFIG #
|
||||||
##################
|
##################
|
||||||
|
|
||||||
|
# If config doesn't exist, create it
|
||||||
if [ ! -f /config/joal/config.json ]; then
|
if [ ! -f /config/joal/config.json ]; then
|
||||||
bashio::log.info "Symlinking config files"
|
bashio::log.info "Symlinking config files"
|
||||||
touch /data/joal/config.json
|
|
||||||
mkdir -p /config/joal
|
mkdir -p /config/joal
|
||||||
touch /config/joal/config.json
|
cp /data/joal/config.json /config/joal/config.json
|
||||||
ln -s /config/joal/config.json /data/joal/config.json
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Refresh symlink
|
||||||
|
ln -sf /config/joal/config.json /data/joal/config.json
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# LAUNCH APPS #
|
# LAUNCH APPS #
|
||||||
###############
|
###############
|
||||||
|
|||||||
Reference in New Issue
Block a user