golang install function

master
Kebler Network System Administrator 2021-11-20 18:21:59 -08:00
parent ff9c178611
commit f424d8a644
1 changed files with 10 additions and 0 deletions

10
giskard/function/golang Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
module_load golang-install
module_load acl
# echo loaded golang func
golang() {
golang_install -e m
if [[ $? -eq 0 ]]; then
share_dir -w -o sysadmin -g users /opt/go sysadmin david
fi
}