This shows you the differences between two versions of the page.
Last revision Both sides next revision | |||
content:en_us:7_ug_kopano_webmeetings [2019/07/26 10:31] nickh created |
content:en_us:7_ug_kopano_webmeetings [2019/07/26 14:36] nickh [Fix the installation bug] |
||
---|---|---|---|
Line 14: | Line 14: | ||
<code> | <code> | ||
- | # Fix any faulty random numbers from initial installation | ||
- | #-------------------------------------------------------- | ||
- | |||
PREFIX='0000' | PREFIX='0000' | ||
Line 23: | Line 20: | ||
CHECK=`grep -i "^sessionSecret[[:space:]]*=[[:space:]]*$PREFIX$" /etc/kopano/webmeetings.cfg` | CHECK=`grep -i "^sessionSecret[[:space:]]*=[[:space:]]*$PREFIX$" /etc/kopano/webmeetings.cfg` | ||
- | if [ -z "$CHECK" ]; then | + | if [ -n "$CHECK" ]; then |
- | random=$(od -vN 16 -An -tx1 /dev/urandom | tr -cd _A-Z-a-z-0-9) | + | random=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c32) |
logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting session secret" | logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting session secret" | ||
sed -i -e "s/^sessionSecret[[:space:]]*=.*/sessionSecret = $random/" /etc/kopano/webmeetings.cfg | sed -i -e "s/^sessionSecret[[:space:]]*=.*/sessionSecret = $random/" /etc/kopano/webmeetings.cfg | ||
Line 33: | Line 30: | ||
CHECK=`grep -i "^encryptionSecret[[:space:]]*=[[:space:]]*$PREFIX$" /etc/kopano/webmeetings.cfg` | CHECK=`grep -i "^encryptionSecret[[:space:]]*=[[:space:]]*$PREFIX$" /etc/kopano/webmeetings.cfg` | ||
- | if [ -z "$CHECK" ]; then | + | if [ -n "$CHECK" ]; then |
- | random=$(od -vN 16 -An -tx1 /dev/urandom | tr -cd _A-Z-a-z-0-9) | + | random=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c32) |
logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting encryption secret" | logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting encryption secret" | ||
sed -i -e "s/^encryptionSecret[[:space:]]*=.*/encryptionSecret = $random/" /etc/kopano/webmeetings.cfg | sed -i -e "s/^encryptionSecret[[:space:]]*=.*/encryptionSecret = $random/" /etc/kopano/webmeetings.cfg | ||
Line 43: | Line 40: | ||
CHECK=`grep -i "^sharedsecret_secret[[:space:]]*=[[:space:]]*$PREFIX$" /etc/kopano/webmeetings.cfg` | CHECK=`grep -i "^sharedsecret_secret[[:space:]]*=[[:space:]]*$PREFIX$" /etc/kopano/webmeetings.cfg` | ||
- | if [ -z "$CHECK" ]; then | + | if [ -n "$CHECK" ]; then |
- | random=$(od -vN 16 -An -tx1 /dev/urandom | tr -cd _A-Z-a-z-0-9) | + | random=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c32) |
logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting sharedsecret secret" | logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting sharedsecret secret" | ||
sed -i -e "s/^sharedsecret_secret[[:space:]]*=.*/sharedsecret_secret = $random/" /etc/kopano/webmeetings.cfg | sed -i -e "s/^sharedsecret_secret[[:space:]]*=.*/sharedsecret_secret = $random/" /etc/kopano/webmeetings.cfg | ||
Line 54: | Line 51: | ||
CHECK=`grep -i "^server_secret_key[[:space:]]*=[[:space:]]*$PREFIX$" /etc/kopano/presence.cfg` | CHECK=`grep -i "^server_secret_key[[:space:]]*=[[:space:]]*$PREFIX$" /etc/kopano/presence.cfg` | ||
- | if [ -z "$CHECK" ]; then | + | if [ -n "$CHECK" ]; then |
- | random=$(od -vN 16 -An -tx1 /dev/urandom | tr -cd _A-Z-a-z-0-9) | + | random=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c32) |
logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting server_secret_key" | logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting server_secret_key" | ||
sed -i -e "s/^server_secret_key[[:space:]]*=.*/server_secret_key = $random/" /etc/kopano/presence.cfg | sed -i -e "s/^server_secret_key[[:space:]]*=.*/server_secret_key = $random/" /etc/kopano/presence.cfg | ||
Line 65: | Line 62: | ||
CHECK=`grep -i "^DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_CODE_TOKEN_SECRET', '$PREFIX" /etc/kopano/webapp/config-meetings.php` | CHECK=`grep -i "^DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_CODE_TOKEN_SECRET', '$PREFIX" /etc/kopano/webapp/config-meetings.php` | ||
- | if [ -z "$CHECK" ]; then | + | if [ -n "$CHECK" ]; then |
- | random=$(od -vN 16 -An -tx1 /dev/urandom | tr -cd _A-Z-a-z-0-9) | + | random=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c32) |
logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting PLUGIN_SPREEDWEBRTC_WEBAUTH_CODE_TOKEN_SECRET" | logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting PLUGIN_SPREEDWEBRTC_WEBAUTH_CODE_TOKEN_SECRET" | ||
sed -i -e "s/^DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_CODE_TOKEN_SECRET.*/DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_CODE_TOKEN_SECRET', '$random');/" /etc/kopano/webapp/config-meetings.php | sed -i -e "s/^DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_CODE_TOKEN_SECRET.*/DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_CODE_TOKEN_SECRET', '$random');/" /etc/kopano/webapp/config-meetings.php | ||
Line 75: | Line 72: | ||
CHECK=`grep -i "^DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_ACCESS_TOKEN_SECRET', '$PREFIX" /etc/kopano/webapp/config-meetings.php` | CHECK=`grep -i "^DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_ACCESS_TOKEN_SECRET', '$PREFIX" /etc/kopano/webapp/config-meetings.php` | ||
- | if [ -z "$CHECK" ]; then | + | if [ -n "$CHECK" ]; then |
- | random=$(od -vN 16 -An -tx1 /dev/urandom | tr -cd _A-Z-a-z-0-9) | + | random=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c32) |
logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting PLUGIN_SPREEDWEBRTC_WEBAUTH_ACCESS_TOKEN_SECRET" | logger -p local6.notice -t installer "app-kopano-webmeetings-core - setting PLUGIN_SPREEDWEBRTC_WEBAUTH_ACCESS_TOKEN_SECRET" | ||
sed -i -e "s/^DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_ACCESS_TOKEN_SECRET.*/DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_ACCESS_TOKEN_SECRET', '$random');/" /etc/kopano/webapp/config-meetings.php | sed -i -e "s/^DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_ACCESS_TOKEN_SECRET.*/DEFINE('PLUGIN_SPREEDWEBRTC_WEBAUTH_ACCESS_TOKEN_SECRET', '$random');/" /etc/kopano/webapp/config-meetings.php | ||
Line 99: | Line 96: | ||
#------------------------------ | #------------------------------ | ||
- | logger -p local6.notice -t installer "app-kopano-webmeetings-core - starting kopano-webmeetings" | + | logger -p local6.notice -t installer "app-kopano-webmeetings-core - starting kopano-presence" |
systemctl condrestart kopano-presence | systemctl condrestart kopano-presence | ||
- | </code> | + | ===== Links ===== |
+ | * [[https://documentation.kopano.io/|Kopano Administrator and User Manuals]] | ||
+ | {{keywords>clearos, clearos content, Kopano Web Meetings, app-kopano-webmeetings, clearos7, userguide, categoryserver, subcategorycommunicationandcollaboration, maintainer_nhowitt}} | ||
===== Configuration ===== | ===== Configuration ===== | ||
===== Links ===== | ===== Links ===== | ||
{{keywords>clearos, clearos content, Kopano Web Meetings, app-kopano-webmeetings, clearos7, userguide, categoryserver, subcategorycommunicationandcollaboration, maintainer_nhowitt}} | {{keywords>clearos, clearos content, Kopano Web Meetings, app-kopano-webmeetings, clearos7, userguide, categoryserver, subcategorycommunicationandcollaboration, maintainer_nhowitt}} |