22-08-2024
This commit is contained in:
48
remote_scripts.sh
Executable file
48
remote_scripts.sh
Executable file
@@ -0,0 +1,48 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
# remote scripts
|
||||
|
||||
ssh -t bruno@maboiteverte.fr ./purge_server.sh
|
||||
|
||||
ssh -t bruno@maboiteverte.fr ./upgrade_joplin.sh
|
||||
|
||||
ssh -t bruno@maboiteverte.fr ./mbv-gitea-upd.sh
|
||||
|
||||
# sudo: /opt/plesk/php/7.2/bin/php: command not found
|
||||
#ssh -t bruno@maboiteverte.fr ./upgrade_nextcloud.sh
|
||||
|
||||
printf './upgrade_nextcloud.sh' | ssh -t bruno@maboiteverte.fr 'bash -l'
|
||||
|
||||
# pb with ssh keys
|
||||
ssh -t bruno@maboiteverte.fr ./backup_vps.sh
|
||||
|
||||
|
||||
|
||||
# ssh bruno@maboiteverte.fr 'source ~/.bash_profile && php -v'
|
||||
#PHP 7.2.24
|
||||
|
||||
# echo "php -v" | mbv
|
||||
# PHP 8.2.6
|
||||
|
||||
# php -v | ssh 'bruno@maboiteverte.fr'
|
||||
#-bash: line 1: syntax error near unexpected token `('
|
||||
#-bash: line 1: `PHP 8.2.10 (cli) (built: Sep 1 2023 00:17:29) (NTS)'
|
||||
|
||||
# php -v | ssh bruno@maboiteverte.fr 'bash -l'
|
||||
# bash: line 1: syntax error near unexpected token `('
|
||||
# bash: line 1: `PHP 8.2.10 (cli) (built: Sep 1 2023 00:17:29) (NTS)'
|
||||
|
||||
# printf 'php -v' | ssh bruno@maboiteverte.fr 'bash -l'
|
||||
# PHP 8.2.6 (cli) (built: May 15 2023 06:37:47) (NTS)
|
||||
# Copyright (c) The PHP Group
|
||||
# Zend Engine v4.2.6, Copyright (c) Zend Technologies
|
||||
# with Zend OPcache v8.2.6, Copyright (c), by Zend Technologies
|
||||
|
||||
# printf 'php -v' | ssh bruno@maboiteverte.fr
|
||||
# Pseudo-terminal will not be allocated because stdin is not a terminal.
|
||||
|
||||
# PHP 8.2.6 (cli) (built: May 15 2023 06:37:47) (NTS)
|
||||
# Copyright (c) The PHP Group
|
||||
# Zend Engine v4.2.6, Copyright (c) Zend Technologies
|
||||
# with Zend OPcache v8.2.6, Copyright (c), by Zend Technologies
|
||||
Reference in New Issue
Block a user