Fix config location

This commit is contained in:
rexy712 2019-10-30 14:24:56 -07:00
parent 7a4062f38e
commit ebcd27f260
4 changed files with 8 additions and 8 deletions

View File

@ -85,8 +85,8 @@ src_prepare() {
[ "${PV}" == "9999" ] && { http_proxy=""; "${S}"/scripts/fetch-develop.deps.sh; }
fi
if [ -e "${DESTINATION}/config.json" ] && use savedconfig;then
cp "${DESTINATION}/config.json" "${S}"/config.json
if [ -e "${DESTINATION}/webapp/config.json" ] && use savedconfig;then
cp "${DESTINATION}/webapp/config.json" "${S}"/config.json
else
cp "${S}"/config.sample.json "${S}"/config.json
use "darkmode" && sed -e 's/^\([[:space:]]*"default_theme":[[:space:]]*\)"light"/\1"dark"/' "${S}"/config.json -i

View File

@ -85,8 +85,8 @@ src_prepare() {
[ "${PV}" == "9999" ] && { http_proxy=""; "${S}"/scripts/fetch-develop.deps.sh; }
fi
if [ -e "${DESTINATION}/config.json" ] && use savedconfig;then
cp "${DESTINATION}/config.json" "${S}"/config.json
if [ -e "${DESTINATION}/webapp/config.json" ] && use savedconfig;then
cp "${DESTINATION}/webapp/config.json" "${S}"/config.json
else
cp "${S}"/config.sample.json "${S}"/config.json
use "darkmode" && sed -e 's/^\([[:space:]]*"default_theme":[[:space:]]*\)"light"/\1"dark"/' "${S}"/config.json -i

View File

@ -85,8 +85,8 @@ src_prepare() {
[ "${PV}" == "9999" ] && { http_proxy=""; "${S}"/scripts/fetch-develop.deps.sh; }
fi
if [ -e "${DESTINATION}/config.json" ] && use savedconfig;then
cp "${DESTINATION}/config.json" "${S}"/config.json
if [ -e "${DESTINATION}/webapp/config.json" ] && use savedconfig;then
cp "${DESTINATION}/webapp/config.json" "${S}"/config.json
else
cp "${S}"/config.sample.json "${S}"/config.json
use "darkmode" && sed -e 's/^\([[:space:]]*"default_theme":[[:space:]]*\)"light"/\1"dark"/' "${S}"/config.json -i

View File

@ -85,8 +85,8 @@ src_prepare() {
[ "${PV}" == "9999" ] && { http_proxy=""; "${S}"/scripts/fetch-develop.deps.sh; }
fi
if [ -e "${DESTINATION}/config.json" ] && use savedconfig;then
cp "${DESTINATION}/config.json" "${S}"/config.json
if [ -e "${DESTINATION}/webapp/config.json" ] && use savedconfig;then
cp "${DESTINATION}/webapp/config.json" "${S}"/config.json
else
cp "${S}"/config.sample.json "${S}"/config.json
use "darkmode" && sed -e 's/^\([[:space:]]*"default_theme":[[:space:]]*\)"light"/\1"dark"/' "${S}"/config.json -i