Skip to content

Commit 6d60738

Browse files
committed
chore(infra): automatiser la création de la commande globale lsit
1 parent 5f65e43 commit 6d60738

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Vagrantfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ Vagrant.configure("2") do |config|
44
config.vm.provision "shell", inline: <<-SHELL
55
apt-get update
66
apt-get install -y python3 python3-pip nano tree
7+
chmod +x /vagrant/lsit.py
8+
ln -s /vagrant/lsit.py /usr/local/bin/lsit
79
SHELL
810
end

lsit.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python3
12
import subprocess
23

34
with open("/etc/hostname") as f:

0 commit comments

Comments
 (0)