JoeUnraidUser

Members
  • Posts

    208
  • Joined

Everything posted by JoeUnraidUser

  1. I'm not sure what you are trying to do. "./backupDockers.sh -l" only lists the dockers you have installed on the system, not the backups of the dockers. You should never use /mnt/cache as your backup directory. The backup will fail because it syncs the files to a folder called appdata in the backup directory. appdata is usually located in /mnt/cache/appdata. It would mean it is trying to overwrite itself.
  2. I updated from 6.11.0-rc3 to 6.11.0-rc5. I use a number of PERL modules. After the install of 6.11.0-rc5 I tried updating the PERL modules and it was getting the following error: fatal error: sys/types.h: No such file or directory I finally chased down the problem to glibc. I know that it was working before. While on 6.11.0-rc2 I had reloaded all the PERL modules from scratch and did not get this error. The reason I had reloaded all the PERL modules from scratch was part of the process of figuring out which packages I needed to put in /boot/extra that were being provided by NerdPack and DevPack. glibc was not one of the needed packages. Since you told me where to find the installed packages, I removed glibc-2.36-x86_64-3.txz from /boot/extra and rebooted to see if glibc is there. I see that glibc-2.36-x86_64-3_LT is installed. I went ahead and reloaded my PERL modules from scratch and I get the same error: fatal error: sys/types.h: No such file or directory So, I guess glibc-2.36-x86_64-3_LT is not loading sys/types.h correctly. I put glibc-2.36-x86_64-3.txz back into /boot/extra, rebooted, and now everything is working fine again. I have been running the following script from the go file for years with no problems. One of the things it does is appends to .bash_profile. After logging into Unraid using SSH I tried to run an alias I set in .bash_profile called bin and it said command not found. I typed alias and saw it wasn't set. I checked .bash_profile and it had been overwritten. I finally figured out that sometime during the boot process .bash_profile is now being overwritten. #!/bin/bash if [ -f /root/.bash_profile.orig ] then cp /root/.bash_profile.orig /root/.bash_profile else cp /root/.bash_profile /root/.bash_profile.orig fi ( cat <<"EOF" # alias alias bin="/usr/bin/ls -al /root/bin" # Perl PERLHOME="/root/perl5"; export PERLHOME; PERL5LIB="$PERLHOME/lib/perl5"; export PERL5LIB; PERL_MB_OPT="--install_base $PERLHOME"; export PERL_MB_OPT; PERL_MM_OPT="INSTALL_BASE=$PERLHOME"; export PERL_MM_OPT; PERL_LOCAL_LIB_ROOT="$PERLHOME"; export PERL_LOCAL_LIB_ROOT; # Path PATH=.:/root/bin:$PERLHOME/bin:$PATH EOF ) >> /root/.bash_profile ln -s /boot/config/perl5 /root/perl5 rsync -hrltgoD --delete --chown=root:root --chmod=ugo=rwx "/boot/config/bin/" /root/bin modprobe i915 chmod -R 777 /dev/dri I fixed it by adding a sleep 10 to the beginning of the script. It would have been nice to know this change in the release notes.
  3. Packages were removed such as glibc without any notice in the release notes. Only what has been updated is listed. If a package has been removed, it should also be listed. There should be a place that defines all the packages that are included in the distribution. This is important information to have since NerdPack and DevPack are no longer supported and the user now has to maintain their own additional slackware packages. There was a new change in writing to .bash_profile while booting however it was not mentioned in the release notes and those of us that append to .bash_profile from the go file get overwritten by the change. @limetech
  4. I had permission issues with my dockers after the upgrade and fixed the problems by running the following: chown -cR nobody:users /mnt/user/appdata/* chmod -cR ug+rw,ug+X,o-rwx /mnt/user/appdata/*
  5. I just tried downloading the file from the link and the download still works.
  6. You can run it from any folder except the flash drive. You can then run it from within a script in the UserScripts plugin.
  7. I can't seem to make it get the same error. What command line are you entering?
  8. Sorry for my confusion. To install p7zip: Install the NerdPack plugin. Go to SETTINGS and click on Nerd Pack. Turn on p7zip-16.02-x86_64-1sl.txz. Then click on APPLY at the bottom. You may have to reboot for it to take effect if the apply doesn't work.
  9. Try typing in the full path: /usr/bin/7z
  10. 7z is already installed in /usr/bin/7z. In a terminal type 7z and hit enter.
  11. To set the umask to 0000 do the following on a line before your command: umask 0
  12. Try adding the following to the beginning of your command so it runs in a login shell: sudo -i -u root
  13. I had the same problem when running PERL scripts. I had to hardcode library and config paths. Try running the script in a login shell by doing the following: su - root /mnt/user/test/test.sh <<<password --or-- sudo -i -u root /mnt/user/test/test.sh
  14. You could use the following: echo $(eval echo "~$(whoami)")
  15. You can achieve the same thing from the command line with PERL: perl -pi -e 's/#FF8C2F/#42ADFA/g' /mnt/user/text/mytestfile.txt Perl one-liners
  16. Your right it doesn't work. I tested it using "MON" and it failed. It looks like Unraid is using "crond 4.5 dillon's cron daemon". It's strange because the man page crontab(1) for "dillon's lightweight cron daemon" contains: a symbolic range for the day of week and month in year # run at 11 am on the first and last Mon, Tue, Wed of each month 0 11 1,5 * mon-wed date Edit: I tested it again using "mon" and it worked. It must only work with lowercase days of the week.
  17. "or use names" means SUN-SAT or sun-sat. Example crontab line from man page crontab(5): 5 4 * * sun echo "run at 5 after 4 every sunday" Edit: Also from man page crontab(5): Names can also be used for the 'month' and 'day of week' fields. Use the first three letters of the particular day or month (case does not matter). Ranges or lists of names are not allowed.
  18. The last field should be day of week. Allowed values are 0-6, 7 for Sunday or SUN-SAT. 0 6 * * MON is 06:00 on Monday From the crontab man page crontab(5) : field allowed values ----- -------------- minute 0-59 hour 0-23 day of month 1-31 month 1-12 (or names, see below) day of week 0-7 (0 or 7 is Sunday, or use names)
  19. To run mover enter the following command: /usr/local/sbin/mover
  20. The following script will show the subfolders for each movie. To remove the subfolders; uncomment the following line: #rm -rf "$dir" to rm -rf "$dir" movies_subdirs.sh #!/bin/bash movies="/mnt/user/test/movies" process() { local movieDir=$1 readarray -t dirs < <(find "$movieDir" -mindepth 1 -maxdepth 1 -type d -print 2>/dev/null) if [ ${#dirs[@]} != 0 ] then printf "$movieDir\n" for dir in "${dirs[@]}" do printf "$dir\n" #rm -rf "$dir" done fi } ls -1d "$movies"/*/ | sed 's/\/*$//' |\ while read movie do if [ -d "$movie/DVD1" ] then ls -1d "$movie"/DVD*/ | sed 's/\/*$//' |\ while read dvd do process "$dvd" done else process "$movie" fi done
  21. Check for movie.xml and mkv files in each movie folder. check_movies.sh #!/bin/bash movies="/mnt/user/test/movies" process() { local movieDir=$1 local mkv="$(find "$movieDir" -iname '*.mkv')" local xml="$(find "$movieDir" -iname 'movie.xml')" if [ -z "$mkv" ] || [ -z "$xml" ] then printf "$movieDir\n" [ -z "$mkv" ] && printf "\tmkv: file not found\n" [ -z "$xml" ] && printf "\tmovie.xml: file not found\n" fi } ls -1d "$movies"/*/ | sed 's/\/*$//' |\ while read movie do if [ -d "$movie/DVD1" ] then ls -1d "$movie"/DVD*/ | sed 's/\/*$//' |\ while read dvd do process "$dvd" done else process "$movie" fi done
  22. Do you want the script to move "movie.xml" to the parent directory like the mkv file? I could modify the script so that at the time of processing it checks if an mkv file exists, if not print a message. Or I could make a separate script to check if the files exist.