August 6, 201510 yr Where is the bash_profile that gets used when unraid boots? I want to make some changes to it like: TERM=xterm But I am under the impression that if I modify the /root/.bash_profile that it will get rewritten on reboot. Maybe this isn't the case but I can't reboot my server right now to test it out.
November 6, 201510 yr I would like to know the same thing. If anyone knows, please enlighten. All I want to do is add some aliases. Any changes made to /root/.bash_profile get rewritten...
November 6, 201510 yr Community Expert I would like to know the same thing. If anyone knows, please enlighten. All I want to do is add some aliases. Any changes made to /root/.bash_profile get rewritten... unRAID runs from RAM and is always load as a fresh copy into RAM. If you want anything you do to survive a reboot then you need to store the changed files on the flash and make appropriate changes to your 'go' file to copy them into place during the boot process.
November 12, 201510 yr itimpi, Thanks for the reply. I'm basically doing that right now, but things aren't getting copied the way I think they should. I think I have some errors in the scripts I'm using. I'm in the process of replacing an old 2TB WD Green drive with 2 new 3TB drives so I can't do much now.
November 21, 201510 yr Ok, so here's the deal, /boot/config/go as follows #!/bin/bash # Start the Management Utility /usr/local/sbin/emhttp & cp /mnt/user/me/my_script /etc/cron.hourly/ cp /mnt/user/me/.bash_profile /root/ /root/.bash_profile after clean reboot: # console coloring for kool kids PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' # impersonate a user alias user="su -ls /bin/bash"/ ls -al /etc/cron.hourly: total 0 drwxr-xr-x 2 root root 60 Nov 21 14:32 ./ drwxr-xr-x 44 root root 2440 Nov 21 14:26 ../ what /root/.bash_profile looks like after running 'go' manually: # console coloring for kool kids PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' # impersonate a user alias user="su -ls /bin/bash" alias ll="ls $LS_OPTIONS -al" and cron.hourly: total 4 drwxr-xr-x 2 root root 60 Nov 21 14:32 ./ drwxr-xr-x 44 root root 2440 Nov 21 14:26 ../ -rwxrwxrwx 1 root root 230 Nov 21 14:32 my_script* For whatever reason, 'go' isn't doing what I want it to unless I run it manually... Any tips on what I'm doing wrong? Thanks unraid-server-syslog-20151121-1451.zip
November 22, 201510 yr For whatever reason, 'go' isn't doing what I want it to unless I run it manually... Any tips on what I'm doing wrong? Sure looks like you are trying to copy files from the array before the array has been started. How about copying them from the flash drive instead?
November 22, 201510 yr For whatever reason, 'go' isn't doing what I want it to unless I run it manually... Any tips on what I'm doing wrong? Sure looks like you are trying to copy files from the array before the array has been started. How about copying them from the flash drive instead? Great! That solved my problem No more chasing my tail... Thanks for the help!
January 29, 201610 yr I have a stupidly simple plugin which adds lines to the system-wide profile: here. Note the modification of the original default file, rather than overwriting it with a modified copy. Your method is more likely to run into problems if the default .bash_profile is changed in a future release of unRAID.
January 29, 201610 yr Community Expert I have a stupidly simple plugin which adds lines to the system-wide profile: here. Note the modification of the original default file, rather than overwriting it with a modified copy. Your method is more likely to run into problems if the default .bash_profile is changed in a future release of unRAID. Now that you mention it, can you confirm that your plugin is 6.1 compatible so we can move the thread? Working for me.
January 29, 201610 yr I have a stupidly simple plugin which adds lines to the system-wide profile: here. Note the modification of the original default file, rather than overwriting it with a modified copy. Your method is more likely to run into problems if the default .bash_profile is changed in a future release of unRAID. Now that you mention it, can you confirm that your plugin is 6.1 compatible so we can move the thread? Working for me. Yes. it is fully compatible with 6.1 - there is no user interface.
Archived
This topic is now archived and is closed to further replies.