diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-10-13 11:24:28 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-10-29 21:58:42 +0900 |
commit | 3eb38d2556f676d1027746f20bf12a1dd74451ef (patch) | |
tree | edb951c28bdb55dad18244d1200642cfe6a2904f | |
parent | 9a047e99f2223a4fb7400b949b81fd061e56aa8d (diff) | |
download | krecipes-3eb38d2556f676d1027746f20bf12a1dd74451ef.tar.gz krecipes-3eb38d2556f676d1027746f20bf12a1dd74451ef.zip |
Remove unused scripts
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 7d5ba3180a82a0827c1fbd6dc93a2abf4f882c37)
-rwxr-xr-x | krecipes/scripts/backup_data.sh | 2 | ||||
-rwxr-xr-x | krecipes/scripts/backup_database.sh | 2 | ||||
-rwxr-xr-x | krecipes/scripts/backup_table_structure.sh | 2 | ||||
-rwxr-xr-x | krecipes/scripts/convert_sqlite3.sh | 58 |
4 files changed, 0 insertions, 64 deletions
diff --git a/krecipes/scripts/backup_data.sh b/krecipes/scripts/backup_data.sh deleted file mode 100755 index d43a0a9..0000000 --- a/krecipes/scripts/backup_data.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -mysqldump -p --no-create-db --no-create-info --databases $1> $2
\ No newline at end of file diff --git a/krecipes/scripts/backup_database.sh b/krecipes/scripts/backup_database.sh deleted file mode 100755 index 7bbb296..0000000 --- a/krecipes/scripts/backup_database.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -mysqldump --databases $1> $2
\ No newline at end of file diff --git a/krecipes/scripts/backup_table_structure.sh b/krecipes/scripts/backup_table_structure.sh deleted file mode 100755 index fe84265..0000000 --- a/krecipes/scripts/backup_table_structure.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -mysqldump -p --no-create-db --no-data --databases $1> $2
\ No newline at end of file diff --git a/krecipes/scripts/convert_sqlite3.sh b/krecipes/scripts/convert_sqlite3.sh deleted file mode 100755 index 766c6e7..0000000 --- a/krecipes/scripts/convert_sqlite3.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/bin/sh -# -# This script will convert an SQLite 2.x database file to SQLite 3. -# -# Calling it without any parameters, it will convert the file specified in the -# Krecipes configuration -# -# If Krecipes can't find the database file, you need to manually give -# it on the command-line, e.g.: -# -# $./convert_sqlite.sh /path/to/database.file -# - -file=$1 -if test -z $1; then - file=`kreadconfig --file krecipesrc --group Server --key DBFile` - if test "$?" -ne "0"; then - echo "Unable to find database file using 'kreadconfig'" - echo "You need to manually specify where the SQLite 2 database file is, e.g.:" - echo " $./convert_sqlite3.sh /path/to/database.file" - exit 1 - fi -fi - -if test -e $file; then - -sqlite $file .dump > /dev/null - -if test "$?" -ne "0"; then - echo "Conversion failed" - exit 1 -fi - -sqlite $file .dump | sqlite3 $file.new - -if test "$?" -ne "0"; then - echo "Conversion failed" - exit 1 -fi - -mv $file $file.sqlite2 -if test "$?" -ne "0"; then - echo "Unable to backup old SQLite 2 file... aborting" - exit 1 -fi - -mv $file.new $file -if test "$?" -ne "0"; then - echo "Created SQLite 3 database, '$file.new', but unable to copy it to $file" -else - echo "Conversion successful!" -fi - -else - echo "Database file '$file' doesn't exist" - echo "You need to manually specify where the SQLite 2 database file is, e.g.:" - echo " $./convert_sqlite3.sh /path/to/database.file" -fi |