sudo docker pull mysql:5.7
CREATE DATABASE liferay71;
CREATE USER 'lportal'@'localhost' IDENTIFIED BY 'my-strong-password-here';
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON liferay71.* TO 'lportal'@'localhost';
FLUSH PRIVILEGES;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LIFERAY_HOME=/opt/liferay-dxp-digital-enterprise-7.0-sp2 | |
sudo systemctl stop liferay | |
sudo rm -rf $LIFERAY_HOME/tomcat-8.0.32/temp/* | |
sudo rm -rf $LIFERAY_HOME/tomcat-8.0.32/work/* | |
sudo rm -rf $LIFERAY_HOME/tomcat-8.0.32/logs/* | |
sudo rm -rf $LIFERAY_HOME/osgi/state/* | |
sudo systemctl start liferay |
First you need to install and configure the ddns update client
cd /tmp
wget https://www.noip.com/client/linux/noip-duc-linux.tar.gz
tar xzf noip-duc-linux.tar.gz
sudo mv noip-2.1.9-1 /usr/local/src/
cd /usr/local/src/noip-2.1.9-1
sudo make
sudo make install
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo certbot renew --dry-run | |
read -e -p "Install new certificate? " -i "yes" answer | |
if [ "$answer" = "yes" ]; then | |
sudo certbot renew; # Fetches new certificate | |
fi | |
read -e -p "Restart nginx? " -i "yes" answer | |
if [ "$answer" = "yes" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
read -e -p "Do you wish to run autoremove? " -i "yes" answer | |
if [ "$answer" = "yes" ]; then | |
sudo apt-get autoremove; # Remove deprecated packages | |
fi | |
read -e -p "Fetch the list of updates available? " -i "yes" answer | |
if [ "$answer" = "yes" ]; then | |
sudo apt-get update; # Fetches the list of available updates |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# start-openoffice.sh | |
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard |
Unzip lrurel-platform-developer-exercises-7.0.5.zip
Import snippets from com.liferay.training.platdev.snippets/snippets
folder.
https://www.dropbox.com/s/ij166zs8hor5h2g/gradebook.tar.gz?dl=0