Github updated api and now appends a semicolon to versions, added `tr -d :` to list for url filtering elkarbackupALP: * Github api Fix duplicati: * Github api fix * Enabled in jenkinsfile OmadaV3: * Added Stop command for omada after installation to avoid DB corruption * Moved automaticaly installed dependencies to package list transfersh: * Github api fix hass: * Added Missing python modules (sqlalchemy nvhash) mailbackup: * Github api fix * Moved downlading of resources to project pihole: *Added support for ProxmoxHelper App updater
16 lines
545 B
Bash
16 lines
545 B
Bash
#!/bin/ash
|
|
ThisScriptConfigured=no
|
|
##DB
|
|
MysqlIP=127.0.0.1
|
|
MysqlUsername=elkarbackup
|
|
MysqlDatabase=elkarbackup
|
|
MysqlPassword=Password
|
|
|
|
#Check if script is configured
|
|
if [ $ThisScriptConfigured = no ]; then
|
|
echo "Script is not configured"
|
|
exit
|
|
fi
|
|
|
|
sed -i -e 's/DBServer/'$MysqlIP'/' -e 's/DBName/'$MysqlDatabase'/' -e 's/DBUser/'$MysqlUsername'/' -e 's/DBPass/'$MysqlPassword'/' -e 's/ElkarToken/'$(tr -dc 'A-Za-z0-9!#%*+,-.:;<=>?@^_' 2>/dev/null </dev/urandom | head -c 20 ; echo )'/' /etc/elkarbackup/parameters.yaml
|
|
dpkg --configure -a |