Compare commits

...

2 Commits

Author SHA1 Message Date
Christer Warén
0b8ea6b7bf Config Update 2024-04-26 06:35:00 +03:00
Christer Warén
2c5ddd1280 Source Update 2024-04-26 06:34:52 +03:00
9 changed files with 52 additions and 52 deletions

View File

@ -1,10 +1,10 @@
---
warengroup:
domain: waren.io
folder: warengroup
domain: waren.io
folder: warengroup
cwinfo:
domain: cwinfo.net
folder: cwinfo
domain: cwinfo.net
folder: cwinfo
cwchristerw:
domain: christerwaren.fi
folder: cwchristerw
domain: christerwaren.fi
folder: cwchristerw

View File

@ -18,28 +18,28 @@ echo -n "
}
start() {
syntax-line-douple
echo -n "Warén CLI "
syntax-line-douple
syntax-line-douple
echo -n "Warén CLI "
syntax-line-douple
}
stop () {
if [[ -d "./src" ]]
then
podman run -it --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp docker.io/library/php:8-cli php generator.php &> /dev/null
mv wx.tmp wx &> /dev/null
chmod +x wx &> /dev/null
else
sudo curl https://git.waren.io/warengroup/wx/raw/branch/master/wx -o /opt/wx &> /dev/null
if [[ -d "/usr/bin" ]]
if [[ -d "./src" ]]
then
sudo ln -sf /opt/wx /usr/bin/wx &> /dev/null
podman run -it --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp docker.io/library/php:8-cli php generator.php &> /dev/null
mv wx.tmp wx &> /dev/null
chmod +x wx &> /dev/null
else
sudo curl https://git.waren.io/warengroup/wx/raw/branch/master/wx -o /opt/wx &> /dev/null
if [[ -d "/usr/bin" ]]
then
sudo ln -sf /opt/wx /usr/bin/wx &> /dev/null
fi
sudo chmod +x /usr/bin/wx &> /dev/null
fi
sudo chmod +x /usr/bin/wx &> /dev/null
fi
echo " "
echo " "
exit 1
echo " "
echo " "
exit 1
}
{{ COMMANDS }}

View File

@ -1,3 +1,3 @@
warencli-login() {
echo ">>> Authentication: Login";
echo ">>> Login <<<";
}

View File

@ -1,3 +1,3 @@
warencli-logout() {
echo ">>> Authentication: Logout";
echo ">>> Logout <<<";
}

View File

@ -1,3 +1,3 @@
warencli-settings() {
echo ">>> Settings";
echo ">>> Settings <<<";
}

View File

@ -1,3 +1,3 @@
warencli-ssh() {
echo ">>> SSH";
echo ">>> SSH <<<";
}

View File

@ -1,3 +1,3 @@
warencli-ssh-config(){
echo ">>> SSH: Config"
echo ">>> SSH: Config <<<"
}

View File

@ -1,3 +1,3 @@
warencli-ssh-sign(){
echo ">>> SSH: Certificates"
echo ">>> SSH: Certificates <<<"
}

46
wx
View File

@ -18,28 +18,28 @@ echo -n "
}
start() {
syntax-line-douple
echo -n "Warén CLI "
syntax-line-douple
syntax-line-douple
echo -n "Warén CLI "
syntax-line-douple
}
stop () {
if [[ -d "./src" ]]
then
podman run -it --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp docker.io/library/php:8-cli php generator.php &> /dev/null
mv wx.tmp wx &> /dev/null
chmod +x wx &> /dev/null
else
sudo curl https://git.waren.io/warengroup/wx/raw/branch/master/wx -o /opt/wx &> /dev/null
if [[ -d "/usr/bin" ]]
if [[ -d "./src" ]]
then
sudo ln -sf /opt/wx /usr/bin/wx &> /dev/null
podman run -it --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp docker.io/library/php:8-cli php generator.php &> /dev/null
mv wx.tmp wx &> /dev/null
chmod +x wx &> /dev/null
else
sudo curl https://git.waren.io/warengroup/wx/raw/branch/master/wx -o /opt/wx &> /dev/null
if [[ -d "/usr/bin" ]]
then
sudo ln -sf /opt/wx /usr/bin/wx &> /dev/null
fi
sudo chmod +x /usr/bin/wx &> /dev/null
fi
sudo chmod +x /usr/bin/wx &> /dev/null
fi
echo " "
echo " "
exit 1
echo " "
echo " "
exit 1
}
warencli-help() {
@ -61,27 +61,27 @@ Management Commands:
}
warencli-settings() {
echo ">>> Settings";
echo ">>> Settings <<<";
}
warencli-ssh() {
echo ">>> SSH";
echo ">>> SSH <<<";
}
warencli-login() {
echo ">>> Authentication: Login";
echo ">>> Login <<<";
}
warencli-logout() {
echo ">>> Authentication: Logout";
echo ">>> Logout <<<";
}
warencli-ssh-config(){
echo ">>> SSH: Config"
echo ">>> SSH: Config <<<"
}
warencli-ssh-sign(){
echo ">>> SSH: Certificates"
echo ">>> SSH: Certificates <<<"
}