Detect current version as upgrade information
Add step for troubleshooting notes
This commit is contained in:
@@ -91,28 +91,53 @@ exit 0
|
|||||||
step_10_info() { echo "Configuration notes"; }
|
step_10_info() { echo "Configuration notes"; }
|
||||||
step_10_alias() { ALIAS="notes"; }
|
step_10_alias() { ALIAS="notes"; }
|
||||||
step_10() {
|
step_10() {
|
||||||
echo "# smtp port if missing after installation"
|
outColor green
|
||||||
echo" [$RC_LOC/config/config.inc.php]"
|
cat <<NOTES_END
|
||||||
echo ' // SMTP port (default is 25; use 587 for STARTTLS or 465 for the'
|
# smtp port if missing after installation
|
||||||
echo ' // deprecated SSL over SMTP (aka SMTPS))'
|
[$RC_LOC/config/config.inc.php]
|
||||||
echo " \$config['smtp_port'] = 465;"
|
// SMTP port (default is 25; use 587 for STARTTLS or 465 for the
|
||||||
echo
|
// deprecated SSL over SMTP (aka SMTPS))
|
||||||
echo "# Enable two factor auth (installed with step config) for all user"
|
\$config['smtp_port'] = 465;
|
||||||
echo " [$RC_LOC/plugins/twofactor_gauthenticator/config.inc.php]"
|
|
||||||
echo " $rcmail_config['users_allowed_2FA'] = array('.*');"
|
# Enable two factor auth (installed with step config) for all user
|
||||||
echo
|
[$RC_LOC/plugins/twofactor_gauthenticator/config.inc.php]
|
||||||
echo "# Add mobile skin to roundcube"
|
$rcmail_config['users_allowed_2FA'] = array('.*');
|
||||||
echo " cd ${RC_LOC}"
|
|
||||||
echo " git clone https://github.com/messagerie-melanie2/Roundcube-Skin-Melanie2-Larry-Mobile.git skins/melanie2_larry_mobile"
|
# Add mobile skin to roundcube and run step 'postupgrade'.
|
||||||
echo "# Install pspell and aspell spell check engine"
|
Don't forget to activate plugins if asked for.
|
||||||
echo " apt install php7.x-pspell aspell-en aspell-de"
|
|
||||||
echo
|
[$RC_LOC/composer.json]
|
||||||
echo " [$RC_LOC/config/config.inc.php]"
|
"require": {
|
||||||
echo " \$config['spellcheck_engine'] = 'pspell';"
|
...
|
||||||
echo " \$config['spellcheck_languages'] = array("
|
"mobiledetect/mobiledetectlib": "^2.8",
|
||||||
echo " 'en' => 'English',"
|
"roundcube/elastic4mobile": "dev-master"
|
||||||
echo " 'de' => 'Deutsch',"
|
}
|
||||||
echo " );"
|
|
||||||
|
# Install pspell and aspell spell check engine
|
||||||
|
apt install php7.x-pspell aspell-en aspell-de
|
||||||
|
|
||||||
|
[$RC_LOC/config/config.inc.php]
|
||||||
|
\$config['spellcheck_engine'] = 'pspell';
|
||||||
|
\$config['spellcheck_languages'] = array(
|
||||||
|
'en' => 'English',
|
||||||
|
'de' => 'Deutsch',
|
||||||
|
);
|
||||||
|
NOTES_END
|
||||||
|
}
|
||||||
|
|
||||||
|
step_12_info() { echo "Troubleshooting"; }
|
||||||
|
step_12_alias() { ALIAS="trouble"; }
|
||||||
|
step_12() {
|
||||||
|
outColor green
|
||||||
|
cat <<TROUBLE_END
|
||||||
|
# On composer update errors.
|
||||||
|
|
||||||
|
* Backup '/var/www/webmail/plugin' config. Especially twofactor_gauthenticator
|
||||||
|
* Delete '/var/www/webmail/vendor' folder. Or at least 'vendor/autoload.php' and 'vendor/composer'
|
||||||
|
* 'sqn_roundcube -q postupgrade'
|
||||||
|
|
||||||
|
I also installed 'php-pear' since one error indicated connection to it.
|
||||||
|
TROUBLE_END
|
||||||
}
|
}
|
||||||
|
|
||||||
step_20_info() {
|
step_20_info() {
|
||||||
@@ -150,6 +175,8 @@ step_22_info() {
|
|||||||
step_22_alias() { ALIAS="upgrade"; }
|
step_22_alias() { ALIAS="upgrade"; }
|
||||||
step_22() {
|
step_22() {
|
||||||
shift # don't need step number
|
shift # don't need step number
|
||||||
|
local currentVersion=
|
||||||
|
|
||||||
if [ ! -z $1 ] ; then
|
if [ ! -z $1 ] ; then
|
||||||
latestVersion="$1"
|
latestVersion="$1"
|
||||||
else
|
else
|
||||||
@@ -161,7 +188,8 @@ step_22() {
|
|||||||
return 1
|
return 1
|
||||||
elif [ $QUIET -eq 0 ] ; then
|
elif [ $QUIET -eq 0 ] ; then
|
||||||
echo
|
echo
|
||||||
exe read -p "Install $latestVersion to $RC_LOC [n]o/(y)es? " answer
|
currentVersion="$(grep -Po ' \| Version \K.*?(?= )' $RC_LOC/index.php)"
|
||||||
|
exe read -p "Install $latestVersion over $currentVersion to $RC_LOC [n]o/(y)es? " answer
|
||||||
case $answer in
|
case $answer in
|
||||||
[yY])
|
[yY])
|
||||||
;;
|
;;
|
||||||
|
Reference in New Issue
Block a user