peliprint/blueprint/lib/db.sh
Jack G b48115ddcb Update blueprint.sh
Undid previous change since installer bug is still happening
2023-04-03 01:51:44 +01:00

12 lines
No EOL
427 B
Bash

#!/bin/bash
dbAdd() {
# dbAdd "database.record";
sed -i "s/+ db.addnewrecord;/* ${1};\n+ db.addnewrecord;/g" /var/www/pterodactyl/.blueprint/db.md > /dev/null;
}; dbValidate() {
# dbValidate "database.record";
grep -Fxq "* ${1};" /var/www/pterodactyl/.blueprint/db.md > /dev/null;
}; dbRemove() {
# dbRemove "database.record";
sed -i "s/* ${1};//g" /var/www/pterodactyl/.blueprint/db.md > /dev/null;
};