Fix config location
This commit is contained in:
parent
7a4062f38e
commit
ebcd27f260
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user