Added ubuntu support to the nextcloud.js app

This commit is contained in:
Mathias Wagner 2023-06-03 19:58:20 +02:00
parent fa2d20e72d
commit cfcfe6d5ca
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -10,10 +10,6 @@ module.exports = {
description: "Zugriff prüfen",
command: "if [ $EUID -ne 0 ]; then exit 1; fi"
},
{
description: "Betriebssystem prüfen",
command: "if [ $(lsb_release -si) != \"Debian\" ]; then exit 1; fi"
},
{
description: "Installationsort prüfen",
command: "if [ -d {folder} ]; then exit 1; fi"
@ -24,13 +20,18 @@ module.exports = {
},
{
description: "PHP installieren",
command: "apt install -y sudo lsb-release ca-certificates apt-transport-https software-properties-common gnupg2"
command: "apt install -y sudo lsb-release ca-certificates apt-transport-https software-properties-common gnupg2",
os: "debian"
},
{
command: "echo \"deb https://packages.sury.org/php/ $(lsb_release -sc) main\" | tee /etc/apt/sources.list.d/sury-php.list"
description: "PHP installieren",
command: "add-apt-repository --yes ppa:ondrej/php",
os: "ubuntu"
},
{
command: "wget -qO - https://packages.sury.org/php/apt.gpg | apt-key add -"
description: "PHP installieren",
command: "echo \"deb https://packages.sury.org/php/ $(lsb_release -sc) main\" | tee /etc/apt/sources.list.d/sury-php.list && wget -qO - https://packages.sury.org/php/apt.gpg | apt-key add -",
os: "debian"
},
{command: "apt update"},
{