ispCP - Board - Support
nightly update script won´t work - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Update/Upgrade (/forum-44.html)
+--- Thread: nightly update script won´t work (/thread-7724.html)



nightly update script won´t work - FidiBus - 09-01-2009 10:18 PM

hi,
i would likw to try the nightly update.
by calling the nightly update-script(n_updat.sh) with
./n_updat.sh i get just a:
admin:/# ./update.sh
bash: ./update.sh: /bin/sh^M: bad interpreter: No such file or directory

chown is root:root...chmod is 4777
what i´m doing wrong. other scripts work that way. ipasted the code from here in nano.

thank you


RE: nightly update script won´t work - ut2k3 - 09-01-2009 10:44 PM

Remove all ^M from the file. This problem occurs maybe if you paste from windows to putty or something like this.

====

To remove the ^M characters at the end of all lines in vi, use:

:%s/^V^M//g

The ^v is a CONTROL-V character and ^m is a CONTROL-M. When you type this, it will look like this:

:%s/^M//g

In UNIX, you can escape a control character by preceeding it with a CONTROL-V. The :%s is a basic search and replace command in vi. It tells vi to replace the regular expression between the first and second slashes (^M) with the text between the second and third slashes (nothing in this case). The g at the end directs vi to search and replace globally (all occurrences).

Other way is to use the tool - hm the name was dos2unix i think


RE: nightly update script won´t work - FidiBus - 09-01-2009 11:06 PM

thank you so much!
never had this before


RE: nightly update script won´t work - FidiBus - 09-02-2009 04:51 AM

has the update script to be run in a special directory? (Launch it as “root” from your “trunk” directory.) i don´t have a "trunk" directory.
i´ve done:apt-get install subversion (not more)
any other work to before the script can run?

thank you


RE: nightly update script won´t work - sci2tech - 09-02-2009 05:08 AM

Why you want to use that script? I wroted for people who understand what are doing and want to follow development. But it is incomplete, is not updating all configure files, and sometime can bring a lot of trouble.
If you want to use last trunk, there is and official update procedure that can be used (ispcp-update). Please read INSTALL file for your distribution and make backups.


RE: nightly update script won´t work - FidiBus - 09-02-2009 05:28 AM

not really "service minded" your answer. but ok i find my way.

thank you


RE: nightly update script won´t work - gOOvER - 09-02-2009 02:24 PM

(09-02-2009 05:28 AM)FidiBus Wrote:  not really "service minded" your answer. but ok i find my way.

What' not "service minded" on his answer?

If you don't know what you are doing, you better not use the NightlyUpdateScript. And your question show's that you are not knowing what you do.

Do the way sci2tec told you. Wink