mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Update msgs
This commit is contained in:
		| @@ -1,15 +1,15 @@ | ||||
| #!/bin/bash | ||||
| # Updates openvpn client.conf with auth credentials | ||||
|  | ||||
| echo "Enabling auth-user-pass in OpenVPN client.conf..." | ||||
| echo "Enabling auth credentials in OpenVPN client.conf" | ||||
| line='auth-user-pass' | ||||
| file='/tmp/ovpnclient.ovpn' | ||||
|  | ||||
| if grep -q "$line" $file; then | ||||
|     echo "Updating line: $line" | ||||
|     echo "Updating $line" | ||||
|     sudo sed -i "s/$line/$line login.conf/g" $file | ||||
| else | ||||
|     echo "Adding line: $line" | ||||
|     echo "Adding $line" | ||||
|     sudo sed -i "$ a $line login.conf" $file | ||||
| fi | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user