From ef5555948a423a1efb1c259c7a1aef0f802f614d Mon Sep 17 00:00:00 2001 From: Keanu Taufan Date: Thu, 24 Oct 2024 21:28:28 +0700 Subject: [PATCH] fix task 14 permission denied --- ChoChang/14.sh | 1 + FiliusFlitwick/14.sh | 2 ++ LunaLovegood/14.sh | 2 ++ 3 files changed, 5 insertions(+) diff --git a/ChoChang/14.sh b/ChoChang/14.sh index 7e25387..36f7885 100644 --- a/ChoChang/14.sh +++ b/ChoChang/14.sh @@ -1,5 +1,6 @@ #!/bin/bash +echo "nameserver 192.168.122.1" > /etc/resolv.conf git clone https://github.com/lodaogos/laravel-jarkom-modul-3.git mv laravel-jarkom-modul-3 /var/www cp /var/www/laravel-jarkom-modul-3/.env.example /var/www/laravel-jarkom-modul-3/.env diff --git a/FiliusFlitwick/14.sh b/FiliusFlitwick/14.sh index ee79a75..36f7885 100644 --- a/FiliusFlitwick/14.sh +++ b/FiliusFlitwick/14.sh @@ -1,8 +1,10 @@ #!/bin/bash +echo "nameserver 192.168.122.1" > /etc/resolv.conf git clone https://github.com/lodaogos/laravel-jarkom-modul-3.git mv laravel-jarkom-modul-3 /var/www cp /var/www/laravel-jarkom-modul-3/.env.example /var/www/laravel-jarkom-modul-3/.env +chown -R www-data.www-data /var/www/laravel-jarkom-modul-3/storage sed -i 's/DB_HOST=127.0.0.1/DB_HOST=10.67.4.2/g' /var/www/laravel-jarkom-modul-3/.env sed -i 's/DB_DATABASE=laravel/DB_DATABASE=dbkelompokf01/g' /var/www/laravel-jarkom-modul-3/.env diff --git a/LunaLovegood/14.sh b/LunaLovegood/14.sh index ee79a75..36f7885 100644 --- a/LunaLovegood/14.sh +++ b/LunaLovegood/14.sh @@ -1,8 +1,10 @@ #!/bin/bash +echo "nameserver 192.168.122.1" > /etc/resolv.conf git clone https://github.com/lodaogos/laravel-jarkom-modul-3.git mv laravel-jarkom-modul-3 /var/www cp /var/www/laravel-jarkom-modul-3/.env.example /var/www/laravel-jarkom-modul-3/.env +chown -R www-data.www-data /var/www/laravel-jarkom-modul-3/storage sed -i 's/DB_HOST=127.0.0.1/DB_HOST=10.67.4.2/g' /var/www/laravel-jarkom-modul-3/.env sed -i 's/DB_DATABASE=laravel/DB_DATABASE=dbkelompokf01/g' /var/www/laravel-jarkom-modul-3/.env