feat: fix broken Ubuntu container
This commit is contained in:
parent
66494a7f28
commit
a60dd9ab7d
2 changed files with 2 additions and 3 deletions
|
@ -15,7 +15,7 @@ function init_waydroid() {
|
||||||
}
|
}
|
||||||
require('child_process').spawn('sh', ['-c', 'pkexec waydroid upgrade -o; waydroid session stop; waydroid session start'])
|
require('child_process').spawn('sh', ['-c', 'pkexec waydroid upgrade -o; waydroid session stop; waydroid session start'])
|
||||||
setTimeout(() => { postMessage('success') }, 2000)
|
setTimeout(() => { postMessage('success') }, 2000)
|
||||||
}, 4000)
|
}, 8000)
|
||||||
`
|
`
|
||||||
)
|
)
|
||||||
init_worker.onmessage = e => {
|
init_worker.onmessage = e => {
|
||||||
|
|
|
@ -105,8 +105,6 @@ if [[ ! -f '/.init_blend.lock' ]]; then
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
echo 'nameserver 1.1.1.1' > /etc/resolv.conf
|
|
||||||
|
|
||||||
if command -v apt-get &>/dev/null; then
|
if command -v apt-get &>/dev/null; then
|
||||||
apt-get update &>/dev/null
|
apt-get update &>/dev/null
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get -y install bash bc curl less wget apt-utils apt-transport-https dialog \
|
DEBIAN_FRONTEND=noninteractive apt-get -y install bash bc curl less wget apt-utils apt-transport-https dialog \
|
||||||
|
@ -320,6 +318,7 @@ if ! grep -q "^${_uname}:" /etc/group; then
|
||||||
printf "%s:x:%s:" "$_uname" "$_cgid" >> /etc/group
|
printf "%s:x:%s:" "$_uname" "$_cgid" >> /etc/group
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
userdel -r ubuntu &>/dev/null
|
||||||
useradd --uid "$_cuid" --gid "$_cgid" --shell "/bin/bash" --no-create-home --home "$_uhome" "$_uname" &>/dev/null
|
useradd --uid "$_cuid" --gid "$_cgid" --shell "/bin/bash" --no-create-home --home "$_uhome" "$_uname" &>/dev/null
|
||||||
|
|
||||||
chown root /etc/sudo.conf
|
chown root /etc/sudo.conf
|
||||||
|
|
Loading…
Reference in a new issue