skip to Main Content

sed command not modifying the file – Debian

I copy /etc/default/keybord and make a keyboard2 file. When I cat the file I get : # KEYBOARD CONFIGURATION FILE # Consult the keyboard(5) manual page. XKBMODEL="pc105" XKBLAYOUT="fr" XKBVARIANT="" XKBOPTIONS="" BACKSPACE="guess" Then I sed s/fr/us/ keyboard2 and immediatlly displays :…

VIEW QUESTION

How to generate openssl blowfish without certain characters or allow certain set of characters – Phpmyadmin

I have the following bash script to insert blowfish automatically into config.inc.php for phpMyAdmin: #!/bin/bash randomBlowfishSecret=$(openssl rand -base64 32) echo "BlowFish Value: ${randomBlowfishSecret}" replace_pma_blowfish="$cfg['blowfish_secret'] = '${randomBlowfishSecret}'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */" sed -i "s/$cfg[.blowfish_secret.]s*=.*/${replace_pma_blowfish}/" /var/www/html/phpMyAdmin/config.inc.php…

VIEW QUESTION
Back To Top
Search