- Ajout command git
This commit is contained in:
parent
657b22741d
commit
b30f13f4a0
51
TODO.md
51
TODO.md
|
|
@ -3,60 +3,23 @@ BUG SMTP PROXMOX
|
|||
|
||||
---------------------------
|
||||
|
||||
Sur mon serveur CA
|
||||
step ca certificate "*.server.home" server-wildcard.crt server-wildcard.key \
|
||||
--provisioner admin@frogg.home \
|
||||
--not-after 876000h
|
||||
|
||||
876000h 100 ans ?
|
||||
----------------------------
|
||||
|
||||
|
||||
# PROXMOX
|
||||
changer le pass
|
||||
pct exec 105 -- passwd root
|
||||
aller sur la vm
|
||||
pct enter 105
|
||||
|
||||
|
||||
ajouter la conf ssh
|
||||
/etc/ssh/sshd_config
|
||||
systemctl restart ssh
|
||||
|
||||
certifcat autosigne
|
||||
openssl req -newkey rsa:2048 -nodes -keyout jellyfin.key -x509 -days 365 -out jellyfin.crt
|
||||
-----------------------------------
|
||||
nano /etc/pve/lxc/104.conf
|
||||
|
||||
mount lxc
|
||||
pct set ID -mp0 /mnt/synology_series,mp=/srv/media/series
|
||||
pct set 104 -mp1 /mnt/synology_films,mp=/srv/media/films
|
||||
|
||||
------------------------------------------
|
||||
|
||||
git config --global http.sslVerify false
|
||||
|
||||
git init
|
||||
git remote add origin https://192.168.0.100/Frogg/Linux_frogg-profile.d.git
|
||||
git fetch
|
||||
git reset --hard origin/main
|
||||
git clean -fd
|
||||
|
||||
git -c http.sslVerify=false clone https://192.168.0.100/Frogg/Linux_frogg-profile.d.git
|
||||
|
||||
----------------------------------------------------------
|
||||
|
||||
option pour desactiver firewall
|
||||
--
|
||||
|
||||
Bash
|
||||
nano /etc/pve/lxc/ID.conf
|
||||
Ajoute cette ligne à la fin du fichier :
|
||||
Plaintext
|
||||
mp0: /mnt/data/series,mp=/srv/media/series
|
||||
|
||||
redemarer
|
||||
pct stop 104
|
||||
pct start 104
|
||||
----------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
# SERVER
|
||||
|
|
@ -71,7 +34,7 @@ pct start 104
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
ANSIBLE ?
|
||||
# BONUS
|
||||
option pour desactiver firewall
|
||||
ANSIBLE
|
||||
|
||||
|
|
|
|||
|
|
@ -8,14 +8,16 @@ CONF_LIST_CONFIG_JSON=$(cat <<EOF
|
|||
{
|
||||
"section": "SYSTEM",
|
||||
"items": [
|
||||
|
||||
{"label": "SSH Config", "cmd": "/etc/ssh/sshd_config"}
|
||||
{"label": "Env vars", "cmd": "/etc/environment"}
|
||||
]
|
||||
},
|
||||
{
|
||||
"section": "NETWORK",
|
||||
"items": [
|
||||
{"label": "Nom de la machine", "cmd": "/etc/hosts"},
|
||||
{"label": "Nom de la machine", "cmd": "/etc/hostname"}
|
||||
{"label": "Computer name", "cmd": "/etc/hosts"},
|
||||
{"label": "Computer name", "cmd": "/etc/hostname"}
|
||||
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -30,4 +30,9 @@ git-clone(){
|
|||
|
||||
git-set-url(){
|
||||
git remote set-url origin "$1"
|
||||
}
|
||||
|
||||
git-ssl() {
|
||||
local choice="${1:-true}"
|
||||
git config --global http.sslVerify "$choice"
|
||||
}
|
||||
|
|
@ -56,8 +56,13 @@ if [[ -z "${WELCOME_SCRIPT_PATH}" ]]; then
|
|||
fi
|
||||
. "${WELCOME_SCRIPT_PATH}/func/git.sh"
|
||||
|
||||
# restore as depot
|
||||
alias gitsync='git-reset'
|
||||
# classical git clone depot
|
||||
alias gitclone='git-clone'
|
||||
# change depot url
|
||||
alias giturl='git-set-url'
|
||||
# enable / disable ssl verification
|
||||
alias gitssl='git-ssl'
|
||||
#endregion
|
||||
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ -z "${WELCOME_SCRIPT_PATH}" ]]; then
|
||||
WELCOME_SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." &>/dev/null && pwd)"
|
||||
fi
|
||||
|
||||
. "${WELCOME_SCRIPT_PATH}/config/config_colors.sh"
|
||||
. "${WELCOME_SCRIPT_PATH}/func/message.sh"
|
||||
|
||||
|
||||
Loading…
Reference in New Issue