ubuntu backports
This commit is contained in:
parent
6727fb0b69
commit
3cb70176c3
1 changed files with 4 additions and 0 deletions
|
@ -207,6 +207,10 @@ if [ "${os_type}" == 'Debian' ]; then
|
|||
fi
|
||||
|
||||
if [ "${os_type}" == 'Ubuntu' ]; then
|
||||
if grep -q "^#.*deb http://mirrors.cloud.aliyuncs.com/ubuntu.*backports" /etc/apt/sources.list; then
|
||||
sudo sed -i 's/^#\(.*deb http:\/\/mirrors.cloud.aliyuncs.com\/ubuntu.*backports.*\)/\1/' /etc/apt/sources.list
|
||||
apt update
|
||||
fi
|
||||
VERSION_CODENAME=$(cat /etc/os-release |grep VERSION_CODENAME|cut -f2 -d"=")
|
||||
sudo apt install -t ${VERSION_CODENAME}-backports cockpit -y
|
||||
echo "Cockpit allow root user"
|
||||
|
|
Loading…
Add table
Reference in a new issue