Koozali.org: home of the SME Server

Version 3 of unofficial update script

Offline gregswallow

  • *
  • 651
  • +1/-0
Version 3 of unofficial update script
« Reply #15 on: December 03, 2004, 06:14:42 PM »
You should not have changed the password - it is not necessary

Do this to reset the password:

Code: [Select]
/etc/rc.d/init.d/mysqld stop
/etc/e-smith/events/actions/conf-mysql-password
/etc/rc.d/init.d/mysqld start

Offline gregswallow

  • *
  • 651
  • +1/-0
Version 3 of unofficial update script
« Reply #16 on: December 03, 2004, 06:17:55 PM »
Quote from: "compdoc"
Id recommend first creating the file using pico while SSH’d into SME.

On windows you should be fine copying and pasting into either wordpad or notepad and saving the file, and just upload it somewhere they tou can download it from your new SME server.

And it has been said before, but maybe needs to again, that since this updates SSH, you can't run this while logged in with SSH.

Offline compdoc

  • ****
  • 211
  • +0/-0
Version 3 of unofficial update script
« Reply #17 on: December 03, 2004, 06:37:21 PM »
Actually, the errors described by adam_w occur from using wordpad - its happened to me several times. I've found that pasting into notepad, saving the file to the desktop, transferring via ssh, opening then saving with pico, produces a perfect file.

And yikes - I have always used SSH to install these scripts. Does this mean SSH isnt updated correctly or at all? I've never seen this mentioned in the thread.

Be nice if the instructions and tips were included at the beginning of the http://no.longer.valid/phpwiki/index.php?pagename=Latest%20version%20of%20update%20scripts page.

Even including the command to run the script would be a nice touch - if its been a while since Ive used sh, I have to look it up online. And the tip about not having to change the mysql password, since it clearly tells you do to so during the install, would be cool...

Offline gregswallow

  • *
  • 651
  • +1/-0
Version 3 of unofficial update script
« Reply #18 on: December 03, 2004, 08:21:13 PM »
Quote from: "compdoc"
Be nice if the instructions and tips were included at the beginning of the http://no.longer.valid/phpwiki/index.php?pagename=Latest%20version%20of%20update%20scripts page.

Feel free to add those tips to the Wiki page - anyone can do it :-)

I never had a problem with wordpad - but I did note that if you edit the file with pico, when you change something it sometimes mysteriously adds a line break on a ling line of text.

adam_w

FTP transfer
« Reply #19 on: December 04, 2004, 06:41:52 AM »
Thanks for the quick advice stefan24 and compdoc!  I made the file in notepad and transfered via FTP and it worked great!  has anyone noticed slow keyboard response on the SME server after the update??   Thanks again!  Hats off to all the contribs!

Offline smeghead

  • *
  • 557
  • +0/-0
Version 3 of unofficial update script
« Reply #20 on: December 04, 2004, 07:31:05 AM »
Check out http://www.crimsoneditor.com

Its a free/donation based programming editor that can save in Unix/Linux mode by default.

I use it for all my SME scripting and it is excellent for the job.

Highly recommended.
..................

Offline stefan24

  • ****
  • 483
  • +0/-0
    • www.sme-server.de
Version 3 of unofficial update script
« Reply #21 on: December 08, 2004, 03:48:19 PM »
Greg!

You reapplied this part:

Code: [Select]
#reminder to log script output (dont erase this - useful for debugging any problems)
[...]


although I already put it in my "welcome screen":

Code: [Select]
echo "If you like you can log the output of this script  "
[...]


In your code, everyone, who is pressing any key too fast will dismiss this information, while I request to press an "Y" to proceed.

Please remove your part again, if you agree with me <g>

Offline stefan24

  • ****
  • 483
  • +0/-0
    • www.sme-server.de
Version 3 of unofficial update script
« Reply #22 on: December 08, 2004, 03:57:09 PM »
I made a shell script which extracts the smeplus.sh script from the wiki page to my webserver (once every night, with an archive of other versions. later maybe only upon changes)

Now you just can get the latest script directly from your SME server with

wget http://sme.braunstein.de/update/smeplus.sh
Install it as before with "sh smeplus.sh"

Test it and enjoy the new convenience!

ElFroggio

Problem with script
« Reply #23 on: December 11, 2004, 07:17:08 PM »
For the last week, I get an error message when verifying that all the downloads are done:

5 packages were not downloaded.

Then it aborts. I have used the "script smeplus.log", it does not show which packages are not downloaded.

Am I the only one that this happens to?

Any suggestion?

renet

Version 3 of unofficial update script
« Reply #24 on: December 11, 2004, 08:18:27 PM »
Read the log file /root/plus/plus.log

change this part in the script.

#download securemail
mkdir -p /root/plus/securemail
cd /root/plus/securemail
wget -nc -nd -S http://www.pagefault.org/download/rpms/RPMS/noarch/e-smith-ssl-mailfront-6.0.1-02dc.noarch.rpm -a /root/plus/plus.log
wget -nc -nd -S http://www.pagefault.org/download/rpms/RPMS/noarch/e-smith-smtp-authentication-6.0.1-01dc.noarch.rpm -a /root/plus/plus.log
wget -nc -nd -S http://www.pagefault.org/code/e-smith/securemail/6.0/e-smith-ssl-imap-6.0.1-02dc.noarch.rpm -a /root/plus/plus.log
wget -nc -nd -S http://www.pagefault.org/download/rpms/RPMS/noarch/e-smith-ssl-mailfront-6.0.1-02dc.noarch.rpm -a /root/plus/plus.log
wget -nc -nd -S http://www.pagefault.org/code/e-smith/securemail/6.0/e-smith-ssl-popd-6.0.1-02dc.noarch.rpm -a /root/plus/plus.log
cd /root/plus
echo -n "."

Offline stefan24

  • ****
  • 483
  • +0/-0
    • www.sme-server.de
Version 3 of unofficial update script
« Reply #25 on: December 11, 2004, 08:53:56 PM »
Hi!

This does not work either! Damien seems to have changed the download possibilities of the securemail contribs via WGET. The files *are* there.

I have written an imail to him to solve this problem together with him. In the meantime just delete the securemail contrib lines twice in the script (once for download, second when installing them) or download them via a browser and copy them to the appropriate subdirectory.
Afterwards just start the script once again.

Stay tuned for a final solution...

Offline elmarconi

  • ***
  • 139
  • +0/-0
Version 3 of unofficial update script
« Reply #26 on: December 12, 2004, 04:05:35 PM »
Quote from: "stefan24"
Hi!

This does not work either! Damien seems to have changed the download possibilities of the securemail contribs via WGET. The files *are* there.

Stay tuned for a final solution...


He seems to dislike direct linking...

Using another user agent string for wget does the trick:

wget -nc -nd -S -U SMEupdater http://blahblahblah...
...

Offline stefan24

  • ****
  • 483
  • +0/-0
    • www.sme-server.de
Version 3 of unofficial update script
« Reply #27 on: December 13, 2004, 07:43:15 AM »
Hi!

Quote
He seems to dislike direct linking...
Using another user agent string for wget does the trick


I tried that, too, just to check, where the errror comes from, but that's no solution!

I have mailed Damien to get a solution, that can be included in the SMEplus script.

In the meantime just follow my workaround.
Better, I will remark the lines in the script now.

Offline elmarconi

  • ***
  • 139
  • +0/-0
Version 3 of unofficial update script
« Reply #28 on: December 13, 2004, 11:31:56 AM »
Quote from: "stefan24"
Hi!

I tried that, too, just to check, where the errror comes from, but that's no solution!



I agree, he will have some reason not to allow direct linking with wget, so using another user agent is not the way to go.
...

mbachmann

Version 3 of unofficial update script
« Reply #29 on: December 14, 2004, 01:10:16 PM »
I added a note on the script page: saco-mitel-isoqlog-0.1-05.noarch.rpm is not recent. Latest is: saco-mitel-isoqlog-0.1-09.noarch.rpm. I will not change the script. File is not on contribs.org, find it here: http://www.saco-support.de/sme/saco-mitel-isoqlog/