insert a line in a file and backup it

Need to quicly insert a line ?sed -i.backup -e's/#run_as_user.*/run_as_user=\"nexus\"/' /opt/nexus/bin/nexus.rc Here an example for the nexus.rc file. Even if I find that a bit redundant with the systemd nexus.service file which said - again- User=…

Git credential Store

According to https://cinhtau.net/2018/02/06/configure-git-credentials/git config --global credential.helper 'store --file ~/.my-credentials' CopyBash The authentication is cached for 900 seconds (15 minutes), see also git Credential Cache.Now I have to fill the credential storage with my gitlab access token.  Using git credentials command to…

Problème de permission rsyslog sur un fichier Nexus

Besoin:"Afficher le contenu du fichier /var/lib/nexus/log/nexus.log de la machine localnexus sur l'instance Graylog(c) logs.dgfip"Résultat:Graylog affiche le message : file '/var/lib/nexus/log/nexus.log': open error: Permission denied [v8.24.0-41.el7_7.2 try http://www.rsyslog.com/…

Your Nexus behind a reverse proxy on CentOS

When you install Nexus behind security rules which only permit traffic on port #80 or #443 you may be interested into using a reverse proxy as httpd. Here the steps ...First choose a domain name, then install httpd, finally configure a virtualhost ¹ and check the selinux rulesecho "<my_ip&…