Compare commits
2 Commits
219aac45e5
...
0b8ea6b7bf
Author | SHA1 | Date | |
---|---|---|---|
|
0b8ea6b7bf | ||
|
2c5ddd1280 |
12
config.yml
12
config.yml
@ -1,10 +1,10 @@
|
|||||||
---
|
---
|
||||||
warengroup:
|
warengroup:
|
||||||
domain: waren.io
|
domain: waren.io
|
||||||
folder: warengroup
|
folder: warengroup
|
||||||
cwinfo:
|
cwinfo:
|
||||||
domain: cwinfo.net
|
domain: cwinfo.net
|
||||||
folder: cwinfo
|
folder: cwinfo
|
||||||
cwchristerw:
|
cwchristerw:
|
||||||
domain: christerwaren.fi
|
domain: christerwaren.fi
|
||||||
folder: cwchristerw
|
folder: cwchristerw
|
||||||
|
34
src/base.sh
34
src/base.sh
@ -18,28 +18,28 @@ echo -n "
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
syntax-line-douple
|
syntax-line-douple
|
||||||
echo -n "Warén CLI "
|
echo -n "Warén CLI "
|
||||||
syntax-line-douple
|
syntax-line-douple
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
if [[ -d "./src" ]]
|
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" ]]
|
|
||||||
then
|
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
|
fi
|
||||||
sudo chmod +x /usr/bin/wx &> /dev/null
|
echo " "
|
||||||
fi
|
echo " "
|
||||||
echo " "
|
exit 1
|
||||||
echo " "
|
|
||||||
exit 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
{{ COMMANDS }}
|
{{ COMMANDS }}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
warencli-login() {
|
warencli-login() {
|
||||||
echo ">>> Authentication: Login";
|
echo ">>> Login <<<";
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
warencli-logout() {
|
warencli-logout() {
|
||||||
echo ">>> Authentication: Logout";
|
echo ">>> Logout <<<";
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
warencli-settings() {
|
warencli-settings() {
|
||||||
echo ">>> Settings";
|
echo ">>> Settings <<<";
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
warencli-ssh() {
|
warencli-ssh() {
|
||||||
echo ">>> SSH";
|
echo ">>> SSH <<<";
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
warencli-ssh-config(){
|
warencli-ssh-config(){
|
||||||
echo ">>> SSH: Config"
|
echo ">>> SSH: Config <<<"
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
warencli-ssh-sign(){
|
warencli-ssh-sign(){
|
||||||
echo ">>> SSH: Certificates"
|
echo ">>> SSH: Certificates <<<"
|
||||||
}
|
}
|
||||||
|
46
wx
46
wx
@ -18,28 +18,28 @@ echo -n "
|
|||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
syntax-line-douple
|
syntax-line-douple
|
||||||
echo -n "Warén CLI "
|
echo -n "Warén CLI "
|
||||||
syntax-line-douple
|
syntax-line-douple
|
||||||
}
|
}
|
||||||
|
|
||||||
stop () {
|
stop () {
|
||||||
if [[ -d "./src" ]]
|
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" ]]
|
|
||||||
then
|
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
|
fi
|
||||||
sudo chmod +x /usr/bin/wx &> /dev/null
|
echo " "
|
||||||
fi
|
echo " "
|
||||||
echo " "
|
exit 1
|
||||||
echo " "
|
|
||||||
exit 1
|
|
||||||
}
|
}
|
||||||
|
|
||||||
warencli-help() {
|
warencli-help() {
|
||||||
@ -61,27 +61,27 @@ Management Commands:
|
|||||||
}
|
}
|
||||||
|
|
||||||
warencli-settings() {
|
warencli-settings() {
|
||||||
echo ">>> Settings";
|
echo ">>> Settings <<<";
|
||||||
}
|
}
|
||||||
|
|
||||||
warencli-ssh() {
|
warencli-ssh() {
|
||||||
echo ">>> SSH";
|
echo ">>> SSH <<<";
|
||||||
}
|
}
|
||||||
|
|
||||||
warencli-login() {
|
warencli-login() {
|
||||||
echo ">>> Authentication: Login";
|
echo ">>> Login <<<";
|
||||||
}
|
}
|
||||||
|
|
||||||
warencli-logout() {
|
warencli-logout() {
|
||||||
echo ">>> Authentication: Logout";
|
echo ">>> Logout <<<";
|
||||||
}
|
}
|
||||||
|
|
||||||
warencli-ssh-config(){
|
warencli-ssh-config(){
|
||||||
echo ">>> SSH: Config"
|
echo ">>> SSH: Config <<<"
|
||||||
}
|
}
|
||||||
|
|
||||||
warencli-ssh-sign(){
|
warencli-ssh-sign(){
|
||||||
echo ">>> SSH: Certificates"
|
echo ">>> SSH: Certificates <<<"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user