From 0a9319997f775f317397d88c5dec6a54ba8b4f06 Mon Sep 17 00:00:00 2001 From: Alexandru Cornea Date: Tue, 2 Jul 2013 11:46:17 +0300 Subject: [PATCH] commenting if containing chsmack --- etc/wrt_commons_create_clean_db.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/etc/wrt_commons_create_clean_db.sh b/etc/wrt_commons_create_clean_db.sh index 72671b4..2a27d1c 100755 --- a/etc/wrt_commons_create_clean_db.sh +++ b/etc/wrt_commons_create_clean_db.sh @@ -22,18 +22,18 @@ function create_db { dbpath=$2 # extract smack label before removal DB_LABEL="" - if [ -f $dbpath.$name.db ] - then +# if [ -f $dbpath.$name.db ] +# then # DB_LABEL=`chsmack $dbpath.$name.db | sed -r "s/.*access=\"([^\"]+)\"/\1/"` - fi +# fi rm -f $dbpath.$name.db # extract smack label before removal JOURNAL_LABEL="" - if [ -f $dbpath.$name.db-journal ] - then +# if [ -f $dbpath.$name.db-journal ] +# then # JOURNAL_LABEL=`chsmack $dbpath.$name.db-journal | sed -r "s/.*access=\"([^\"]+)\"/\1/"` - fi +# fi rm -f $dbpath.$name.db-journal SQL=".read /usr/share/wrt-engine/"$name"_db.sql" @@ -47,16 +47,16 @@ function create_db { pkill -9 security-serv # restore smack label - if [ -n "$DB_LABEL" ] - then +# if [ -n "$DB_LABEL" ] +# then # chsmack -a $DB_LABEL $dbpath.$name.db - fi +# fi # restore smack label - if [ -n "$JOURNAL_LABEL" ] - then +# if [ -n "$JOURNAL_LABEL" ] +# then # chsmack -a $JOURNAL_LABEL $dbpath.$name.db-journal - fi +# fi } for name in wrt -- 2.34.1