feat: fix broken Ubuntu container

This commit is contained in:
Rudra Saraswat 2023-05-20 14:50:11 +05:30
parent 66494a7f28
commit a60dd9ab7d
2 changed files with 2 additions and 3 deletions

View file

@ -15,7 +15,7 @@ function init_waydroid() {
}
require('child_process').spawn('sh', ['-c', 'pkexec waydroid upgrade -o; waydroid session stop; waydroid session start'])
setTimeout(() => { postMessage('success') }, 2000)
}, 4000)
}, 8000)
`
)
init_worker.onmessage = e => {

View file

@ -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
apt-get update &>/dev/null
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
fi
fi
userdel -r ubuntu &>/dev/null
useradd --uid "$_cuid" --gid "$_cgid" --shell "/bin/bash" --no-create-home --home "$_uhome" "$_uname" &>/dev/null
chown root /etc/sudo.conf