🧹 Remove workarounds no longer needed (#434)

This commit is contained in:
Franck Nijhof 2022-04-20 17:59:35 +02:00 committed by GitHub
parent 43f99ee621
commit cabb3fdbc0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,18 +56,3 @@ current=$(sha512sum /data/vscode/User/settings.json|cut -d " " -f 1)
if [[ " ${PREVIOUS_DEFAULT_CONFIG_HASHES[*]} " == *" ${current} "* ]]; then
cp /root/.code-server/settings.json /data/vscode/User/settings.json
fi
# Workaround workspace bug for code-server.
# https://github.com/codercom/code-server/issues/121
if ! bashio::fs.file_exists '/data/vscode/Backups/workspaces.json'; then
mkdir -p /data/vscode/Backups \
|| bashio::exit.nok "Could not create persistent storage folder."
cp /root/.code-server/workspaces.json /data/vscode/Backups/workspaces.json
fi
# Workaround workspace bug for code-server (same as above, part 2).
# https://github.com/codercom/code-server/issues/121
if ! bashio::fs.file_exists '/data/vscode/User/workspaceStorage'; then
mkdir -p /data/vscode/User/workspaceStorage \
|| bashio::exit.nok "Could not create persistent storage folder."
fi