First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
Executable
+48
@@ -0,0 +1,48 @@
|
||||
#!/bin/sh
|
||||
|
||||
BASEDIR=/m/data1/hotlunches.net/admin
|
||||
cd $BASEDIR
|
||||
|
||||
rsync -ave "ssh -p44" --progress polarbear1:/m/data1/app.hotlunches.net/table-edit.php .
|
||||
rsync -ave "ssh -p44" --progress polarbear1:/m/data1/app.hotlunches.net/table-edit.functions.php .
|
||||
|
||||
|
||||
BASEDIR=/m/data1/hotlunches.net/admin/form.includes
|
||||
cd $BASEDIR
|
||||
pwd
|
||||
|
||||
rsync -ave "ssh -p44" --progress polarbear1:/m/data1/app.hotlunches.net/form.includes/ .
|
||||
|
||||
|
||||
BASEDIR=/m/data1/hotlunches.net/admin/form.manager
|
||||
cd $BASEDIR
|
||||
pwd
|
||||
|
||||
rsync -ave "ssh -p44" --progress polarbear1:/m/data1/app.hotlunches.net/form.manager/ .
|
||||
|
||||
for dir in */
|
||||
do
|
||||
echo $dir
|
||||
LASTDIR=$dir
|
||||
cd $BASEDIR/$dir
|
||||
|
||||
for file in *
|
||||
do
|
||||
cat $file | sed 's/utf8mb4/utf8/g' | sed 's/utf8mb3/utf8/g' > temp
|
||||
mv temp $file
|
||||
done
|
||||
done
|
||||
|
||||
|
||||
cd $BASEDIR/$LASTDIR
|
||||
pwd
|
||||
|
||||
echo "Loading Tables ..."
|
||||
mysql hotlunch < _form_actions.sql
|
||||
mysql hotlunch < _form_fields.sql
|
||||
mysql hotlunch < _form_permission.sql
|
||||
echo "Done"
|
||||
|
||||
cd $BASEDIR
|
||||
rm archive.forms.sh
|
||||
|
||||
Reference in new issue
Block a user