Skip to content

Commit

Permalink
Wallabag fix user already exists and add License
Browse files Browse the repository at this point in the history
  • Loading branch information
publicarray committed Feb 20, 2021
1 parent 436045d commit b274362
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions spk/wallabag/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ CHANGELOG = "Update to 2.4.1, Update to MariaDB10 and php 7.4 using resouce work

HOMEPAGE = https://www.wallabag.org/
LICENSE = MIT
LICENSE_FILE = $(WORK_DIR)/$(SPK_VERS)/COPYING.md

WIZARDS_DIR = src/wizard/
SERVICE_SETUP = src/service-setup.sh
Expand Down
1 change: 0 additions & 1 deletion spk/wallabag/src/conf/resource
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"flag": true,
"db-name": "wallabag",
"user-name": "wallabag",
"db-collision": "skip",
"user-pw": "{{wizard_wallabag_password_root}}"
}
},
Expand Down
7 changes: 3 additions & 4 deletions spk/wallabag/src/service-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ service_preinst ()
echo "Incorrect MySQL root password"
exit 1
fi
if ${MYSQL} -u root -p"${wizard_mysql_password_root}" mysql -e "SELECT User FROM user" | grep ^${MYSQL_USER}$ > /dev/null 2>&1; then
echo "MySQL user ${MYSQL_USER} already exists"
exit 1
fi
# if ${MYSQL} -u root -p"${wizard_mysql_password_root}" mysql -e "SELECT User FROM user" | grep ^${MYSQL_USER}$ > /dev/null 2>&1; then
# echo "MySQL user ${MYSQL_USER} already exists"
# fi
# if ${MYSQL} -u root -p"${wizard_mysql_password_root}" -e "SHOW DATABASES" | grep ^${MYSQL_DATABASE}$ > /dev/null 2>&1; then
# echo "MySQL database ${MYSQL_DATABASE} already exists"
# exit 1
Expand Down

0 comments on commit b274362

Please sign in to comment.