How can I change package for all user?

but not working
How do you mean not working?

1.) Did it give any output?
2.) Did it thrown any errors, if yes, which errors.
3.) Did you create a new package before?
4.) I presume you did not really use the values "custom" and "fancy" in the script, but the real values, right?
5.) What do the directadmin logs say?
 
How do you mean not working?

1.) Did it give any output?
2.) Did it thrown any errors, if yes, which errors.
3.) Did you create a new package before?
4.) I presume you did not really use the values "custom" and "fancy" in the script, but the real values, right?
5.) What do the directadmin logs say?
1. yes
2. Here is the error /bin/sh^M: bad interpreter: No such file or directory
3. Yes
4. Used actual package name as created under my Direct admin panel.
5. Nothing regarding this.
 
2. Here is the error /bin/sh^M: bad interpreter: No such file or directory
If the solution from @johannes doesn't work for you, then the following tips.

1.) Try to use /bin/bash if /bin/sh is not working.
2.) When creating a script, do -not- use a Windows editor like Wordpad or Notepad as this can put hidden formatting characters in the script (like the ^M) which you do not want.
So for copying and pasting into a script, you better use editors like Notepad++ or Editpad Lite (both are free).
 
Back
Top