• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Chroot_Update broken

VinnyT

Regular Pleskian
Hi. I am trying to add new programs to the CHROOTED environment via this post: http://kb.odin.com/en/115842

I downloaded the following file "http://kb.odin.com/Attachments/kcs-19590/chroot_update.zip", but it has errors. After adding execute permissions, the linux file will not run (errors posted below). I believe there is invalid formatting in the document. I have tried to correct it myself by removing unnecessary characters, but I am unable to get it working. Can you please update the file or attach a new copy to this message?

Thanks

: command not found line 1:
: command not found line 3:
): No such file or directorywarning: setlocale: LC_ALL: cannot change locale (POSIX
): No such file or directorywarning: setlocale: LC_ALL: cannot change locale (POSIX
: command not found line 6:
./chroot_update.sh: line 14: syntax error near unexpected token `elif'
'/chroot_update.sh: line 14: `elif [ -f /etc/debian_version ]; then
 
Fix script with

# yum install dos2unix
# dos2unix chroot_update.sh
 
Back
Top