Skip to content

Commit 9455827

Browse files
committed
Added restart of redis-server to make authentication work
1 parent 0b18a05 commit 9455827

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Vagrantfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,15 @@ Vagrant.configure("2") do |config|
2828

2929
# Mapping a folder, that can be used for HM2 excercises, allowing apache running as www-data to write data to these directories
3030
config.vm.synced_folder "code", "/var/www/html/code", create: true, owner: "www-data", group: "www-data"
31+
32+
config.vm.provision "## Providing some Shell Scripts in $HOME/bin ##", type: "shell",
33+
inline: <<-SH
34+
cp /var/www/html/phpinfo.php /var/www/html/code
35+
SH
36+
37+
config.vm.provision "## Starting Apache and MariaDB with run: always ##", type: "shell", run: "always",
38+
inline: <<-SH
39+
service redis-server restart && echo "Redis started with return $?"
40+
SH
41+
3142
end

0 commit comments

Comments
 (0)