🚑 Fixes missing workspace.json log spam

This commit is contained in:
Franck Nijhof 2019-03-26 13:10:49 +01:00
parent 531964776d
commit eaf5f5b9e3
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3

View file

@ -20,3 +20,11 @@ if ! bashio::fs.file_exists '/data/vscode/User/settings.json'; then
cp -R /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/workspace.json'; then
mkdir -p /data/vscode/Backups \
|| bashio::exit.nok "Could not create persistent storage folder."
touch /data/vscode/Backups/workspace.json
fi