Restore Default File/Folder Structure
This script will restore the mandatory files and directories for your Ultra.cc service to the default structure and re-install your Nginx webserver. It will not overwrite any media files or application configuration files, except for any webserver files you have edited in ~/.apps/nginx
.
The script is to be used if you have accidentally deleted the default files and directories required for your service to run.
Listed below are all the files and directories that will be restored.
~/.bashrc
~/.profile
~/bin
~/.apps
~/downloads
~/media
~/www
Additionally, a symbolic link will be created between ~/downloads
and ~/www
Usage
- Connect to your Ultra service via SSH.
- Once connected, execute the following command:
bash <(wget -qO- https://scripts.ultra.cc/util/Ultra_restore/main.sh)
- You should see
Restoration process has been started...
- Then you should see
Service has been restored to default
- Done!
If you require further assistance, you can open a support ticket here!
Feedback and suggestions regarding this article are welcome on our Discord server