Skip to main content

Restore Default File/Folder Structure

This is an unofficial script that is provided for your convenience. The script is unofficialprovided as-is and may not supportedbe updated or maintained by Ultra.cc. Customers are welcome to use and customize unofficial scripts for their unique needs and requirements. Unofficial support may be offered via Discord only and at the sole discretion of Ultra.cc staff. Use at your own risk.

This script will restore the mandatory files and directories for your Ultra.cc service to the default structure and re-install your nginx webserver. This scriptIt will not overwrite any media files or application configuration filesfiles, except for any webserver files you have updated in ~/.apps/nginx.

ThisThe script shouldis 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.cc slot via SSH, see guide here
  • Once connected, execute the following command:
bash <(wget -qO- https://scripts.usbx.me/util/Ultra_restore/main.sh)
  • You should see Restoration process has been started...
  • Then you should see Service has been restored to default
  • Done!