Symlink code update

This commit is contained in:
Alexandre
2021-05-20 23:38:39 +02:00
committed by GitHub
parent 12dce24e6d
commit be2919e70a

View File

@@ -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 #
############### ###############