This repository has been archived by the owner on Feb 11, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from linuxserver-labs/3.17
- Loading branch information
Showing
19 changed files
with
89 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<html> | ||
<head> | ||
<title>Upgrade Required!</title> | ||
<style> | ||
body{ | ||
font-family: Helvetica, Arial, sans-serif; | ||
} | ||
.message{ | ||
width:440px; | ||
padding:20px 40px; | ||
margin:0 auto; | ||
background-color:#f9f9f9; | ||
border:1px solid #ddd; | ||
color: #1e3d62; | ||
} | ||
center{ | ||
margin:40px 0; | ||
} | ||
h1{ | ||
font-size: 18px; | ||
line-height: 26px; | ||
} | ||
p{ | ||
font-size: 12px; | ||
} | ||
a{ | ||
color: rgb(207, 48, 139); | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="message"> | ||
<h1>Upgrade Required!</h1> | ||
<p>The application inside this image has been moved to a new folder.</p> | ||
<p>You will need to update your <strong>/config/nginx/nginx.conf</strong> and <strong>/config/nginx/site-confs/default.conf</strong> in order for the application to work.</p> | ||
<p>New config samples are located at <strong>/config/nginx/nginx.conf.sample</strong> and <strong>/config/nginx/site-confs/default.conf.sample</strong></p> | ||
<p>Please review our announcement: <a target="_blank" href="https://info.linuxserver.io/issues/2022-08-20-nginx-base/">Significant changes to nginx based images</a></p> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
12 changes: 6 additions & 6 deletions
12
root/etc/cont-init.d/50-config → ...rlay/s6-rc.d/init-your_spotify-config/run
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
#!/usr/bin/with-contenv bash | ||
# shellcheck shell=bash | ||
|
||
VAR_PATH="/app/your_spotify/client/build" | ||
VAR_PATH="/app/www/client/build" | ||
|
||
cp "$VAR_PATH/variables.js" "$VAR_PATH/variables-final.js" | ||
cp "$VAR_PATH/variables-template.js" "$VAR_PATH/variables.js" | ||
|
||
export API_ENDPOINT="${APP_URL}/api" | ||
|
||
if [ -n "$API_ENDPOINT" ] | ||
then | ||
if [[ -n "$API_ENDPOINT" ]]; then | ||
echo "Setting API Endpoint to '$API_ENDPOINT'" | ||
sed -i "s;__API_ENDPOINT__;$API_ENDPOINT;g" "$VAR_PATH/variables-final.js" | ||
sed -i "s;__API_ENDPOINT__;$API_ENDPOINT;g" "$VAR_PATH/variables.js" | ||
else | ||
echo "API_ENDPOINT is not defined, web app won't work" | ||
exit 1 | ||
fi | ||
|
||
HOME="/app" | ||
|
||
chown -R abc:abc \ | ||
lsiown -R abc:abc \ | ||
/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
oneshot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/etc/s6-overlay/s6-rc.d/init-your_spotify-config/run |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/with-contenv bash | ||
# shellcheck shell=bash | ||
|
||
export API_ENDPOINT="${APP_URL}/api" | ||
export CLIENT_ENDPOINT="${APP_URL}" | ||
|
||
s6-setuidgid abc yarn --cwd /app/www/server migrate | ||
|
||
exec \ | ||
s6-notifyoncheck -d -n 300 -w 1000 -c "nc -z localhost 8000" \ | ||
cd /app/www/server s6-setuidgid abc yarn start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
longrun |
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/with-contenv bash | ||
# shellcheck shell=bash | ||
|
||
DEFAULT_CONF="/config/nginx/site-confs/default.conf" | ||
OLD_ROOT="root /app/your_spotify/client/build;" | ||
NEW_ROOT="root /app/www/client/build;" | ||
|
||
if grep -q "${OLD_ROOT}" "${DEFAULT_CONF}" 2>/dev/null; then | ||
echo "updating root in ${DEFAULT_CONF}" | ||
sed -i "s|${OLD_ROOT}|${NEW_ROOT}|" "${DEFAULT_CONF}" | ||
fi |