Commit 18c61b64 authored by Jakob Moser's avatar Jakob Moser
Browse files

Add more preparation

parent af79e14a
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ export const practice = test("Linux-Übungsmodus", function() {
    this.exercise("Datei umbenennen", async function () {
        this.describe(`Ändere den Namen der Datei "satz" in "saetze".`)

        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; if [[ -f saetze ]]; then rm saetze; fi; if [[ ! -f satz ]]; then touch satz; fi")
        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; if [[ -f saetze ]]; then rm saetze; fi; if [[ ! -f satz ]]; then echo Colorless green ideas sleep furiously. > satz; fi")

        await this.manualConfirmation()

@@ -89,7 +89,7 @@ export const practice = test("Linux-Übungsmodus", function() {
    this.exercise("Datei bearbeiten", async function () {
        this.describe(`Füge die Zeile "The cat is on the mat." ans Ende der Datei "saetze" an.`)

        // TODO Add preparation logic
        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; echo Colorless green ideas sleep furiously. > saetze")

        await this.manualConfirmation()

@@ -99,7 +99,7 @@ export const practice = test("Linux-Übungsmodus", function() {
    this.exercise("Inhalt anzeigen", async function () {
        this.describe(`Zeige den Inhalt der Datei "saetze" auf der Konsole an.`)

        // TODO Add preparation logic
        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; echo Colorless green ideas sleep furiously. > saetze; echo The cat is on the mat. >> saetze")

        await this.manualConfirmation()

@@ -109,7 +109,7 @@ export const practice = test("Linux-Übungsmodus", function() {
    this.exercise("Berechtigungen ändern", async function () {
        this.describe(`Ändere die Dateirechte von "saetze" so, dass der Besitzer die Datei nur lesen kann, die besitzende Gruppe die Datei lesen und schreiben kann und alle anderen gar nichts dürfen.`)

        // TODO Add preparation logic
        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; echo Colorless green ideas sleep furiously. > saetze; echo The cat is on the mat. >> saetze; chmod 644 saetze")

        await this.manualConfirmation()

@@ -121,7 +121,7 @@ export const practice = test("Linux-Übungsmodus", function() {
    this.exercise("Berechtigungen anzeigen", async function () {
        this.describe(`Lass dir die aktuellen Berechtigungen für die Datei "saetze" anzeigen.`)

        // TODO Add preparation logic
        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; if [[ ! -f saetze ]]; then echo Colorless green ideas sleep furiously. > saetze; echo The cat is on the mat. >> saetze; fi; chmod 460 saetze")

        await this.manualConfirmation()

@@ -139,7 +139,7 @@ export const practice = test("Linux-Übungsmodus", function() {
    this.exercise("Datei löschen", async function () {
        this.describe(`Lösche die Datei "saetze".`)

        // TODO Add preparation logic
        await this.prepareWith("if [[ ! -d /root/tux ]]; then mkdir /root/tux; fi; cd /root/tux; if [[ ! -f saetze ]]; then echo Colorless green ideas sleep furiously. > saetze; echo The cat is on the mat. >> saetze; fi; chmod 460 saetze")

        await this.manualConfirmation()